[Python-3000-checkins] r54717 - python/branches/p3yk/Lib/test/test_bz2.py

guido.van.rossum python-3000-checkins at python.org
Mon Apr 9 02:00:25 CEST 2007


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()


More information about the Python-3000-checkins mailing list