diff --git a/tests/basics/string_splitlines.py b/tests/basics/string_splitlines.py index 79d22b1852..1d08f6e6d7 100644 --- a/tests/basics/string_splitlines.py +++ b/tests/basics/string_splitlines.py @@ -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())