Kaydet (Commit) 6e0d68e9 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

fix test_gzip

üst 836b670e
...@@ -150,7 +150,7 @@ class TestGzip(unittest.TestCase): ...@@ -150,7 +150,7 @@ class TestGzip(unittest.TestCase):
def test_mode(self): def test_mode(self):
self.test_write() self.test_write()
f = gzip.GzipFile(self.filename, 'r') f = gzip.GzipFile(self.filename, 'r')
self.assertEqual(f.myfileobj.mode, 'rb') self.assertTrue(f.myfileobj.mode.startswith('r'))
f.close() f.close()
def test_1647484(self): 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