mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
tests/basics/string_splitlines: Reinstate feature test for splitlines.
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user