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:
parent
4f0db6e4a1
commit
933520b5ba
|
@ -243,7 +243,7 @@ class BZ2FileTest(BaseTest):
|
||||||
self.createTempFile()
|
self.createTempFile()
|
||||||
bz2f = BZ2File(self.filename, "U")
|
bz2f = BZ2File(self.filename, "U")
|
||||||
bz2f.close()
|
bz2f.close()
|
||||||
f = open(self.filename)
|
f = open(self.filename, "rb")
|
||||||
f.seek(0, 2)
|
f.seek(0, 2)
|
||||||
self.assertEqual(f.tell(), len(self.DATA))
|
self.assertEqual(f.tell(), len(self.DATA))
|
||||||
f.close()
|
f.close()
|
||||||
|
|
Loading…
Reference in New Issue