Skip to content
Snippets Groups Projects
Commit a5273133 authored by Paul Sokolovsky's avatar Paul Sokolovsky Committed by Damien George
Browse files

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

parent 5a91fce9
No related branches found
No related tags found
No related merge requests found
try:
bytes.count
except AttributeError:
print("SKIP")
raise SystemExit
print(b"".count(b""))
print(b"".count(b"a"))
print(b"a".count(b""))
......
try:
str.count
except AttributeError:
print("SKIP")
raise SystemExit
print("".count(""))
print("".count("a"))
print("a".count(""))
......
try:
str.count
except AttributeError:
print("SKIP")
raise SystemExit
# mad.py
# Alf Clement 27-Mar-2014
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment