Skip to content

Commit

Permalink
chore: Access requests exceptions consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Oct 11, 2024
1 parent 06dfa87 commit d95ba26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_http_head(meth):

@pytest.mark.vcr
def test_http_head_error():
with pytest.raises(requests.exceptions.HTTPError):
with pytest.raises(requests.HTTPError):
http_head('http://httpbin.org/status/400')


Expand All @@ -28,7 +28,7 @@ def test_http_get(meth):

@pytest.mark.vcr
def test_http_get_error():
with pytest.raises(requests.exceptions.HTTPError):
with pytest.raises(requests.HTTPError):
http_get('http://httpbin.org/status/400')


Expand Down

0 comments on commit d95ba26

Please sign in to comment.