fix test_gzip

This commit is contained in:
Benjamin Peterson 2008-11-21 00:11:22 +00:00
parent 836b670e89
commit 6e0d68e9e2
1 changed files with 1 additions and 1 deletions

View File

@ -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):