summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-08-26 13:24:09 (GMT)
committerGeorg Brandl <georg@python.org>2005-08-26 13:24:09 (GMT)
commit6cff8cd254fdc553b615980ac36722dddbe995aa (patch)
treec0e87e9f30891a2f45f77fb1fb57fb3c5878d336 /Lib/test
parent63c186b7e3a02c32b7185985cbc992c42e68ae62 (diff)
downloadcpython-6cff8cd254fdc553b615980ac36722dddbe995aa.zip
cpython-6cff8cd254fdc553b615980ac36722dddbe995aa.tar.gz
cpython-6cff8cd254fdc553b615980ac36722dddbe995aa.tar.bz2
Add list() around xreadlines()
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_bz2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_bz2.py b/Lib/test/test_bz2.py
index 11a5c82..504a6d7 100644
--- a/Lib/test/test_bz2.py
+++ b/Lib/test/test_bz2.py
@@ -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'])