MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_read_large

Method test_read_large

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

Source from the content-addressed store, hash-verified

178
179 @bigmemtest(size=_4G, memuse=1)
180 def test_read_large(self, size):
181 # Read chunk size over UINT_MAX should be supported, despite zlib's
182 # limitation per low-level call
183 compressed = gzip.compress(data1, compresslevel=1)
184 f = gzip.GzipFile(fileobj=io.BytesIO(compressed), mode='rb')
185 self.assertEqual(f.read(size), data1)
186
187 def test_io_on_closed_object(self):
188 # 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