tests/basics: bytes/str.partition/rpartition are now optional.
Skip tests if not available.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
try:
|
||||
str.partition
|
||||
except AttributeError:
|
||||
print("SKIP")
|
||||
import sys
|
||||
sys.exit()
|
||||
|
||||
print("asdf".partition('g'))
|
||||
print("asdf".partition('a'))
|
||||
print("asdf".partition('s'))
|
||||
|
||||
Reference in New Issue
Block a user