commit | 933520b5bae4727bf22c00fee9face3515bf95b6 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Apr 09 00:00:23 2007 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Apr 09 00:00:23 2007 +0000 |
tree | 1a20def6c627f3b7e03435469371a0d268116d6b | |
parent | 4f0db6e4a1fa2cd4f564192d687c9e1725129e03 [diff] [blame] |
Fix a place where it's pretty clear that a binary open mode was intended. (The new I/O library revealed the problem.)
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 @@ 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()