(self, size)
| 177 | |
| 178 | @bigmemtest(size=_4G, memuse=1) |
| 179 | def test_read_large(self, size): |
| 180 | # Read chunk size over UINT_MAX should be supported, despite zlib's |
| 181 | # limitation per low-level call |
| 182 | compressed = gzip.compress(data1, compresslevel=1) |
| 183 | f = gzip.GzipFile(fileobj=io.BytesIO(compressed), mode='rb') |
| 184 | self.assertEqual(f.read(size), data1) |
| 185 | |
| 186 | def test_io_on_closed_object(self): |
| 187 | # Test that I/O operations on closed GzipFile objects raise a |
nothing calls this directly
no test coverage detected