Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/encode/httpx
/ test_bad_utf_like_encoding
Function
test_bad_utf_like_encoding
tests/test_utils.py:31–35 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
29
30
31
def
test_bad_utf_like_encoding():
32
content = b
"\x00\x00\x00\x00"
33
response = httpx.Response(200, content=content)
34
with
pytest.raises(json.decoder.JSONDecodeError):
35
response.json()
36
37
38
@pytest.mark.parametrize(
Callers
nothing calls this directly
Calls
1
json
Method · 0.95
Tested by
no test coverage detected