Marc-Andre Lemburg:
authorGuido van Rossum <guido@python.org>
Tue, 11 Apr 2000 15:37:02 +0000 (15:37 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 11 Apr 2000 15:37:02 +0000 (15:37 +0000)
Modified .splitlines() tests according to the changes
in unicodeobject.c.

Lib/test/test_unicode.py

index 4f4196c8213cd7834133c56f614eb5f8574e13dc..58d6e840dad2d4f6be10ace43014f55aaf9ecac1 100644 (file)
@@ -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')})