diff options
author | Guido van Rossum <guido@python.org> | 2007-04-09 00:00:23 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-04-09 00:00:23 (GMT) |
commit | 933520b5bae4727bf22c00fee9face3515bf95b6 (patch) | |
tree | 1a20def6c627f3b7e03435469371a0d268116d6b /Lib/test | |
parent | 4f0db6e4a1fa2cd4f564192d687c9e1725129e03 (diff) | |
download | cpython-933520b5bae4727bf22c00fee9face3515bf95b6.zip cpython-933520b5bae4727bf22c00fee9face3515bf95b6.tar.gz cpython-933520b5bae4727bf22c00fee9face3515bf95b6.tar.bz2 |
Fix a place where it's pretty clear that a binary open mode was intended.
(The new I/O library revealed the problem.)
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_bz2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_bz2.py b/Lib/test/test_bz2.py index 518005a..635c828 100644 --- a/Lib/test/test_bz2.py +++ b/Lib/test/test_bz2.py @@ -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() |