]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add list() around xreadlines()
authorGeorg Brandl <georg@python.org>
Fri, 26 Aug 2005 13:24:09 +0000 (13:24 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 26 Aug 2005 13:24:09 +0000 (13:24 +0000)
Lib/test/test_bz2.py

index 11a5c828808ba84f047a922ab4d5fcf1e4c7359a..504a6d771ed46f2f71e7651566760dcc0e02a977 100644 (file)
@@ -256,7 +256,7 @@ class BZ2FileTest(BaseTest):
         bz2f.close()
         self.assertEqual(lines, ['Test'])
         bz2f = BZ2File(self.filename)
-        xlines = bz2f.xreadlines()
+        xlines = list(bz2f.xreadlines())
         bz2f.close()
         self.assertEqual(lines, ['Test'])