benjamin.peterson
2008-11-21 00:11:22 UTC
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):
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):