From: Georg Brandl Date: Sun, 6 Aug 2006 07:08:16 +0000 (+0000) Subject: Bug #1535182: really test the xreadlines() method of bz2 objects. X-Git-Tag: v2.4.4c1~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33b621c35da1fb94ded13a276280524cd35181a1;p=thirdparty%2FPython%2Fcpython.git Bug #1535182: really test the xreadlines() method of bz2 objects. (backport from rev. 51126) --- diff --git a/Lib/test/test_bz2.py b/Lib/test/test_bz2.py index 504a6d771ed4..7bd8a1ccd227 100644 --- a/Lib/test/test_bz2.py +++ b/Lib/test/test_bz2.py @@ -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): diff --git a/Misc/NEWS b/Misc/NEWS index 4fdf27af2594..427e6fe21ac5 100644 --- 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.