summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gzip.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-11-21 00:11:22 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-11-21 00:11:22 (GMT)
commit6e0d68e9e25fd6ea692a74a57447e98b87a606ad (patch)
tree96bcfa6a0fbf1ec9bfe986bd3ebc1530d342cad1 /Lib/test/test_gzip.py
parent836b670e893a78cd3fc585aad71875a4bdf1a0a9 (diff)
downloadcpython-6e0d68e9e25fd6ea692a74a57447e98b87a606ad.zip
cpython-6e0d68e9e25fd6ea692a74a57447e98b87a606ad.tar.gz
cpython-6e0d68e9e25fd6ea692a74a57447e98b87a606ad.tar.bz2
fix test_gzip
Diffstat (limited to 'Lib/test/test_gzip.py')
-rw-r--r--Lib/test/test_gzip.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_gzip.py b/Lib/test/test_gzip.py
index d28c024..3493b8d 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.assertEqual(f.myfileobj.mode, 'rb')
+ self.assertTrue(f.myfileobj.mode.startswith('r'))
f.close()
def test_1647484(self):