Discussion:
[Python-3000-checkins] r67309 - python/branches/py3k/Lib/test/test_gzip.py
benjamin.peterson
2008-11-21 00:11:22 UTC
Permalink
Author: benjamin.peterson
Date: Fri Nov 21 01:11:22 2008
New Revision: 67309

Log:
fix test_gzip

Modified:
python/branches/py3k/Lib/test/test_gzip.py

Modified: python/branches/py3k/Lib/test/test_gzip.py
==============================================================================
--- python/branches/py3k/Lib/test/test_gzip.py (original)
+++ python/branches/py3k/Lib/test/test_gzip.py Fri Nov 21 01:11:22 2008
@@ -150,7 +150,7 @@
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):

Loading...