diff options
author | Guido van Rossum <guido@python.org> | 2000-04-11 15:37:02 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-04-11 15:37:02 (GMT) |
commit | 7ee801d6afa81750188cf18d42afe9741b4e0934 (patch) | |
tree | 6f86b13d99823adae30d5894af48fbb9dca4d719 /Lib/test | |
parent | e39a88fd58c884deaa3a123880d480c969ef5119 (diff) | |
download | cpython-7ee801d6afa81750188cf18d42afe9741b4e0934.zip cpython-7ee801d6afa81750188cf18d42afe9741b4e0934.tar.gz cpython-7ee801d6afa81750188cf18d42afe9741b4e0934.tar.bz2 |
Marc-Andre Lemburg:
Modified .splitlines() tests according to the changes
in unicodeobject.c.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_unicode.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index 4f4196c..58d6e84 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -212,8 +212,7 @@ test('splitlines', u"abc\ndef\r\nghi", [u'abc', u'def', u'ghi']) test('splitlines', u"abc\ndef\r\nghi\n", [u'abc', u'def', u'ghi']) test('splitlines', u"abc\ndef\r\nghi\n\r", [u'abc', u'def', u'ghi', u'']) test('splitlines', u"\nabc\ndef\r\nghi\n\r", [u'', u'abc', u'def', u'ghi', u'']) -test('splitlines', u"\nabc\ndef\r\nghi\n\r", [u'', u'abc\012def\015\012ghi\012\015'], 1) -test('splitlines', u"\nabc\ndef\r\nghi\n\r", [u'', u'abc', u'def\015\012ghi\012\015'], 2) +test('splitlines', u"\nabc\ndef\r\nghi\n\r", [u'\n', u'abc\n', u'def\r\n', u'ghi\n', u'\r'], 1) test('translate', u"abababc", u'bbbc', {ord('a'):None}) test('translate', u"abababc", u'iiic', {ord('a'):None, ord('b'):ord('i')}) |