summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Dalke <dalke@dalkescientific.com>2006-05-26 11:15:22 (GMT)
committerAndrew Dalke <dalke@dalkescientific.com>2006-05-26 11:15:22 (GMT)
commit03fb44499006da1c390800430be6d2448d01f30d (patch)
tree6e2dbd095bf8ed465cd03fbd3d91ea3d3ea581e8
parent6c433a91d57d2181d79d65adf8f0e0d694d22e3f (diff)
downloadcpython-03fb44499006da1c390800430be6d2448d01f30d.zip
cpython-03fb44499006da1c390800430be6d2448d01f30d.tar.gz
cpython-03fb44499006da1c390800430be6d2448d01f30d.tar.bz2
Added split whitespace checks for characters other than space.
-rw-r--r--Lib/test/string_tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py
index 8f16f20..ecc4159 100644
--- a/Lib/test/string_tests.py
+++ b/Lib/test/string_tests.py
@@ -252,6 +252,7 @@ class CommonTest(unittest.TestCase):
self.checkequal(['a', 'b '], ' a b ', 'split', None, 1)
self.checkequal(['a', 'b c '], ' a b c ', 'split', None, 1)
self.checkequal(['a', 'b', 'c '], ' a b c ', 'split', None, 2)
+ self.checkequal(['a', 'b'], '\n\ta \t\r b \v ', 'split')
# by a char
self.checkequal(['a', 'b', 'c', 'd'], 'a|b|c|d', 'split', '|')