tests/basics/string_splitlines: Reinstate feature test for splitlines.
This commit is contained in:
parent
cc80c4dd59
commit
1e2f829293
|
@ -1,5 +1,12 @@
|
|||
# test string.splitlines() method
|
||||
|
||||
try:
|
||||
str.splitlines
|
||||
except:
|
||||
import sys
|
||||
print("SKIP")
|
||||
sys.exit()
|
||||
|
||||
# test \n as newline
|
||||
print("foo\nbar".splitlines())
|
||||
print("foo\nbar\n".splitlines())
|
||||
|
|
Loading…
Reference in New Issue