Skip to content

Commit

Permalink
Update tests/test_adapters.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmavirus24 authored Feb 22, 2024
1 parent f474861 commit 2cd2815
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, {})

0 comments on commit 2cd2815

Please sign in to comment.