tests: Make bytes/str.count() tests skippable.

This commit is contained in:
Paul Sokolovsky 2018-08-30 20:50:04 +03:00 committed by Damien George
parent 5a91fce9f8
commit a527313382
3 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,9 @@
try:
bytes.count
except AttributeError:
print("SKIP")
raise SystemExit
print(b"".count(b""))
print(b"".count(b"a"))
print(b"a".count(b""))

View File

@ -1,3 +1,9 @@
try:
str.count
except AttributeError:
print("SKIP")
raise SystemExit
print("".count(""))
print("".count("a"))
print("a".count(""))

View File

@ -1,3 +1,9 @@
try:
str.count
except AttributeError:
print("SKIP")
raise SystemExit
# mad.py
# Alf Clement 27-Mar-2014
#