From d95ba26cd7738225d59098f7ec8c4bff864612d5 Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Thu, 10 Oct 2024 23:40:40 -0400 Subject: [PATCH] chore: Access requests exceptions consistently --- tests/test_util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_util.py b/tests/test_util.py index 37c680b..848d05b 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -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') @@ -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')