diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-11-22 00:41:45 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-11-22 00:41:45 (GMT) |
commit | 44309e6b3768d6d559491ddf6ca56bfad2adb9b5 (patch) | |
tree | 5d71526f8d1b06a39c67191bf55e85e68c205c95 /Lib/test/test_gzip.py | |
parent | 656aa28cd50d00171d46df30eaeecd45eb0ae32c (diff) | |
download | cpython-44309e6b3768d6d559491ddf6ca56bfad2adb9b5.zip cpython-44309e6b3768d6d559491ddf6ca56bfad2adb9b5.tar.gz cpython-44309e6b3768d6d559491ddf6ca56bfad2adb9b5.tar.bz2 |
make FileIO.mode always include 'b'
#4386 Reviewed by Amaury
Diffstat (limited to 'Lib/test/test_gzip.py')
-rw-r--r-- | Lib/test/test_gzip.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_gzip.py b/Lib/test/test_gzip.py index 3493b8d..d28c024 100644 --- a/Lib/test/test_gzip.py +++ b/Lib/test/test_gzip.py @@ -150,7 +150,7 @@ class TestGzip(unittest.TestCase): def test_mode(self): self.test_write() f = gzip.GzipFile(self.filename, 'r') - self.assertTrue(f.myfileobj.mode.startswith('r')) + self.assertEqual(f.myfileobj.mode, 'rb') f.close() def test_1647484(self): |