(self)
| 67 | self.assertEqual(f.read(), b_data) |
| 68 | |
| 69 | def test_write(self): |
| 70 | with gzip.GzipFile(self.filename, 'wb') as f: |
| 71 | f.write(data1 * 50) |
| 72 | |
| 73 | # Try flush and fileno. |
| 74 | f.flush() |
| 75 | f.fileno() |
| 76 | if hasattr(os, 'fsync'): |
| 77 | os.fsync(f.fileno()) |
| 78 | f.close() |
| 79 | |
| 80 | # Test multiple close() calls. |
| 81 | f.close() |
| 82 | |
| 83 | def test_write_read_with_pathlike_file(self): |
| 84 | filename = os_helper.FakePath(self.filename) |
no test coverage detected