summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-08-26 13:23:54 (GMT)
committerGeorg Brandl <georg@python.org>2005-08-26 13:23:54 (GMT)
commitd603c04bcdf7c04801d75efc8a25799728252279 (patch)
treec4f75bdaa9bba458fc4fdba749c7ab0724e1cb8f /Lib
parent62fe585b4bc83cf1fb61ef989dcd49b1ddea12a6 (diff)
downloadcpython-d603c04bcdf7c04801d75efc8a25799728252279.zip
cpython-d603c04bcdf7c04801d75efc8a25799728252279.tar.gz
cpython-d603c04bcdf7c04801d75efc8a25799728252279.tar.bz2
Add list() around xreadlines()
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_bz2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_bz2.py b/Lib/test/test_bz2.py
index 11a5c82..a768957 100644
--- a/Lib/test/test_bz2.py
+++ b/Lib/test/test_bz2.py
@@ -191,7 +191,7 @@ class BZ2FileTest(BaseTest):
def testSeekBackwardsFromEnd(self):
# "Test BZ2File.seek(-150, 2)"
self.createTempFile()
- bz2f = BZ2File(self.filename)
+ )bz2f = BZ2File(self.filename)
bz2f.seek(-150, 2)
self.assertEqual(bz2f.read(), self.TEXT[len(self.TEXT)-150:])
bz2f.close()
@@ -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'])