tests/basics/string_splitlines: Reinstate feature test for splitlines.

This commit is contained in:
Damien George 2016-05-13 13:11:22 +01:00
parent cc80c4dd59
commit 1e2f829293
1 changed files with 7 additions and 0 deletions

View File

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