Commit 933520b5 authored by Guido van Rossum's avatar Guido van Rossum

Fix a place where it's pretty clear that a binary open mode was intended.

(The new I/O library revealed the problem.)
parent 4f0db6e4
......@@ -243,7 +243,7 @@ class BZ2FileTest(BaseTest):
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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment