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