Skip to content

Commit d6dded3

Browse files
authored
Merge pull request #6700 from franekmagiera/update-redirect-to-invalid-uri-test
Use an invalid URI that will not cause httpbin to throw 500
2 parents 2d5f547 + bf24b7d commit d6dded3

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)