summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
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'])