1. Armin Rigo
  2. cpython-withatomic

Commits

Benjamin Peterson  committed bac040b

fix test_gzip

  • Participants
  • Parent commits f95ff96
  • Branches default

Comments (0)

Files changed (1)

File Lib/test/test_gzip.py

View file
  • Ignore whitespace
     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):