mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue