)
if 400 <= status_code < 600:
- with pytest.raises(httpx.exceptions.HTTPError) as exc_info:
+ with pytest.raises(httpx.HTTPError) as exc_info:
response.raise_for_status()
assert exc_info.value.response == response
else:
"GET", server.url.copy_with(path="/status/{}".format(status_code))
)
if 400 <= status_code < 600:
- with pytest.raises(httpx.exceptions.HTTPError) as exc_info:
+ with pytest.raises(httpx.HTTPError) as exc_info:
response.raise_for_status()
assert exc_info.value.response == response
else: