Author: guido.van.rossum
Date: Mon Apr 9 02:00:23 2007
New Revision: 54717
Modified:
python/branches/p3yk/Lib/test/test_bz2.py
Log:
Fix a place where it's pretty clear that a binary open mode was intended.
(The new I/O library revealed the problem.)
Modified: python/branches/p3yk/Lib/test/test_bz2.py
==============================================================================
--- python/branches/p3yk/Lib/test/test_bz2.py (original)
+++ python/branches/p3yk/Lib/test/test_bz2.py Mon Apr 9 02:00:23 2007
@@ -243,7 +243,7 @@
self.createTempFile()
bz2f = BZ2File(self.filename, "U")
bz2f.close()
- f = open(self.filename)
+ f = open(self.filename, "rb")
f.seek(0, 2)
self.assertEqual(f.tell(), len(self.DATA))
f.close()
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins