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

(The new I/O library revealed the problem.)
This commit is contained in:
Guido van Rossum 2007-04-09 00:00:23 +00:00
parent 4f0db6e4a1
commit 933520b5ba
1 changed files with 1 additions and 1 deletions

View File

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