]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Bug #1535182: really test the xreadlines() method of bz2 objects.
authorGeorg Brandl <georg@python.org>
Sun, 6 Aug 2006 07:06:33 +0000 (07:06 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 6 Aug 2006 07:06:33 +0000 (07:06 +0000)
Lib/test/test_bz2.py
Misc/NEWS

index 79acc07899b78bf5fb8b1b765e87186259b3368b..56b5ffa0ad53d5724ccfcb949d8bcb146f92f019 100644 (file)
@@ -258,7 +258,7 @@ class BZ2FileTest(BaseTest):
         bz2f = BZ2File(self.filename)
         xlines = list(bz2f.xreadlines())
         bz2f.close()
-        self.assertEqual(lines, ['Test'])
+        self.assertEqual(xlines, ['Test'])
 
 
 class BZ2CompressorTest(BaseTest):
index 33cb0f90d4e003e7791b4acc30b36361c352341f..f06f98c063fed51df0733a31ee5dfb9cb8fd9134 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -48,6 +48,8 @@ Extension Modules
 Tests
 -----
 
+- Bug #1535182: really test the xreadlines() method of bz2 objects.
+
 
 Documentation
 -------------