MCPcopy
hub / github.com/scrapy/scrapy / test_gunzip_truncated

Function test_gunzip_truncated

tests/test_utils_gz.py:26–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25
26def test_gunzip_truncated():
27 text = gunzip((SAMPLEDIR / "truncated-crc-error.gz").read_bytes())
28 assert text.endswith(b"</html")
29
30
31def test_gunzip_no_gzip_file_raises():

Callers

nothing calls this directly

Calls 1

gunzipFunction · 0.90

Tested by

no test coverage detected