File httpbin.patch of Package python-requests.33995
From bf24b7d8d17da34be720c19e5978b2d3bf94a53b Mon Sep 17 00:00:00 2001
From: franekmagiera <framagie@gmail.com>
Date: Sun, 12 May 2024 22:08:24 +0200
Subject: [PATCH] Use an invalid URI that will not cause httpbin to throw 500
---
tests/test_requests.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: requests-2.25.1/tests/test_requests.py
===================================================================
--- requests-2.25.1.orig/tests/test_requests.py
+++ requests-2.25.1/tests/test_requests.py
@@ -2478,7 +2478,7 @@ class TestPreparingURLs(object):
@pytest.mark.parametrize(
'url, exception',
(
- ('http://localhost:-1', InvalidURL),
+ ('http://:1', InvalidURL),
)
)
def test_redirecting_to_bad_url(self, httpbin, url, exception):