]> 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:08:16 +0000 (07:08 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 6 Aug 2006 07:08:16 +0000 (07:08 +0000)
    (backport from rev. 51126)

Lib/test/test_bz2.py
Misc/NEWS

index 504a6d771ed46f2f71e7651566760dcc0e02a977..7bd8a1ccd227bb3a545a1a3e052b64b2b932a819 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 4fdf27af259405a7e85eb1d04725a02373340b8f..427e6fe21ac5844c25f0e83e73c73f2a7120acb9 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -164,6 +164,8 @@ Documentation
 Tests
 -----
 
+- Bug #1535182: really test the xreadlines() method of bz2 objects.
+
 - Patch #1529686: test_iterlen and test_email_codecs are now actually
   run by regrtest.py.