(self)
| 320 | f.write(b'GZ\n') |
| 321 | |
| 322 | def test_mode(self): |
| 323 | self.test_write() |
| 324 | with gzip.GzipFile(self.filename, 'r') as f: |
| 325 | self.assertEqual(f.myfileobj.mode, 'rb') |
| 326 | os_helper.unlink(self.filename) |
| 327 | with gzip.GzipFile(self.filename, 'x') as f: |
| 328 | self.assertEqual(f.myfileobj.mode, 'xb') |
| 329 | |
| 330 | def test_1647484(self): |
| 331 | for mode in ('wb', 'rb'): |
nothing calls this directly
no test coverage detected