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

pull/4258/head
Paul Sokolovsky 2018-08-30 20:50:04 +03:00 zatwierdzone przez Damien George
rodzic 5a91fce9f8
commit a527313382
3 zmienionych plików z 18 dodań i 0 usunięć

Wyświetl plik

@ -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""))

Wyświetl plik

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

Wyświetl plik

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