python/dist/src/Lib/test test_bz2.py,1.18,1.19
Update of /cvsroot/python/python/dist/src/Lib/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4822/Lib/test Modified Files: test_bz2.py Log Message: Add list() around xreadlines() Index: test_bz2.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_bz2.py,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- test_bz2.py 21 Aug 2005 14:16:04 -0000 1.18 +++ test_bz2.py 26 Aug 2005 13:23:54 -0000 1.19 @@ -191,7 +191,7 @@ 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 @@ bz2f.close() self.assertEqual(lines, ['Test']) bz2f = BZ2File(self.filename) - xlines = bz2f.xreadlines() + xlines = list(bz2f.xreadlines()) bz2f.close() self.assertEqual(lines, ['Test'])
participants (1)
-
birkenfeldīŧ users.sourceforge.net