[Python-checkins] r51127 - in python/branches/release24-maint: Lib/test/test_bz2.py Misc/NEWS

georg.brandl python-checkins at python.org
Sun Aug 6 09:08:16 CEST 2006


Author: georg.brandl
Date: Sun Aug  6 09:08:16 2006
New Revision: 51127

Modified:
   python/branches/release24-maint/Lib/test/test_bz2.py
   python/branches/release24-maint/Misc/NEWS
Log:
Bug #1535182: really test the xreadlines() method of bz2 objects.
    (backport from rev. 51126)


Modified: python/branches/release24-maint/Lib/test/test_bz2.py
==============================================================================
--- python/branches/release24-maint/Lib/test/test_bz2.py	(original)
+++ python/branches/release24-maint/Lib/test/test_bz2.py	Sun Aug  6 09:08:16 2006
@@ -258,7 +258,7 @@
         bz2f = BZ2File(self.filename)
         xlines = list(bz2f.xreadlines())
         bz2f.close()
-        self.assertEqual(lines, ['Test'])
+        self.assertEqual(xlines, ['Test'])
 
 
 class BZ2CompressorTest(BaseTest):

Modified: python/branches/release24-maint/Misc/NEWS
==============================================================================
--- python/branches/release24-maint/Misc/NEWS	(original)
+++ python/branches/release24-maint/Misc/NEWS	Sun Aug  6 09:08:16 2006
@@ -164,6 +164,8 @@
 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.
 


More information about the Python-checkins mailing list