From 2cd28154e48a0bb7bc6461ee48694e8e4baefe8f Mon Sep 17 00:00:00 2001 From: Ian Stapleton Cordasco Date: Wed, 21 Feb 2024 20:32:12 -0600 Subject: [PATCH] Update tests/test_adapters.py --- tests/test_adapters.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_adapters.py b/tests/test_adapters.py index 97e28c797c..6c55d5a130 100644 --- a/tests/test_adapters.py +++ b/tests/test_adapters.py @@ -4,4 +4,5 @@ def test_request_url_trims_leading_path_separators(): """See also https://github.com/psf/requests/issues/6643.""" a = requests.adapters.HTTPAdapter() - assert "/v:h" == a.request_url("http://127.0.0.1:10000//v:h", {}) + p = requests.Request(method="GET", url="http://127.0.0.1:10000//v:h").prepare() + assert "/v:h" == a.request_url(p, {})