We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a588bee commit 5893551Copy full SHA for 5893551
1 file changed
tests/models/test_responses.py
@@ -199,9 +199,9 @@ def test_raise_for_excepted_status():
199
# Calling .raise_for_excepted_status without setting a request instance
200
# should raise a runtime error.
201
response = httpx.Response(200)
202
- with pytest.raises(RuntimeError) as exc_info:
+ with pytest.raises(RuntimeError) as runtime_exc_info:
203
response.raise_for_excepted_status([200])
204
- assert "raise_for_excepted_status" in str(exc_info.value)
+ assert "raise_for_excepted_status" in str(runtime_exc_info.value)
205
206
207
def test_response_repr():
0 commit comments