From: Andrew Dalke Date: Fri, 26 May 2006 11:15:22 +0000 (+0000) Subject: Added split whitespace checks for characters other than space. X-Git-Tag: v2.5b1~493 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=03fb44499006da1c390800430be6d2448d01f30d;p=python Added split whitespace checks for characters other than space. --- diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py index 8f16f20e56..ecc41595a0 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', '|')