Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
26
def
test_gunzip_truncated():
27
text = gunzip((SAMPLEDIR /
"truncated-crc-error.gz"
).read_bytes())
28
assert text.endswith(b
"</html"
)
29
30
31
def
test_gunzip_no_gzip_file_raises():
Callers
nothing calls this directly
Calls
1
gunzip
Function · 0.90
Tested by
no test coverage detected