mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #12451: Open the test file in binary mode in test_bz2, the text file is
not needed.
This commit is contained in:
parent
2f655b73e4
commit
938f635acb
1 changed files with 1 additions and 1 deletions
|
@ -340,7 +340,7 @@ class BZ2FileTest(BaseTest):
|
|||
|
||||
def testFileno(self):
|
||||
self.createTempFile()
|
||||
with open(self.filename) as rawf:
|
||||
with open(self.filename, 'rb') as rawf:
|
||||
with BZ2File(fileobj=rawf) as bz2f:
|
||||
self.assertEqual(bz2f.fileno(), rawf.fileno())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue