Skip to content

Commit bf24b7d

Browse files
committed
Use an invalid URI that will not cause httpbin to throw 500
1 parent 2d5f547 commit bf24b7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_requests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2721,7 +2721,7 @@ def test_preparing_bad_url(self, url):
27212721
with pytest.raises(requests.exceptions.InvalidURL):
27222722
r.prepare()
27232723

2724-
@pytest.mark.parametrize("url, exception", (("http://localhost:-1", InvalidURL),))
2724+
@pytest.mark.parametrize("url, exception", (("http://:1", InvalidURL),))
27252725
def test_redirecting_to_bad_url(self, httpbin, url, exception):
27262726
with pytest.raises(exception):
27272727
requests.get(httpbin("redirect-to"), params={"url": url})

0 commit comments

Comments
 (0)