MCPcopy Index your code
hub / github.com/python/cpython / test_read_large

Method test_read_large

Lib/test/test_gzip.py:179–184  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

readMethod · 0.95
compressMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected