Commit 6e0d68e9 authored by Benjamin Peterson's avatar Benjamin Peterson

fix test_gzip

parent 836b670e
......@@ -150,7 +150,7 @@ class TestGzip(unittest.TestCase):
def test_mode(self):
self.test_write()
f = gzip.GzipFile(self.filename, 'r')
self.assertEqual(f.myfileobj.mode, 'rb')
self.assertTrue(f.myfileobj.mode.startswith('r'))
f.close()
def test_1647484(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment