Skip to content
Myr

test_adapters.py

This file

Path

tests/test_adapters.py

8 lines · 311 bytes · Python

Last changed by

Merge pull request #6644 from sigmavirus24/bug/6643Ian Stapleton Cordascobefore adoption3587a5f

History of this file

Take it

Merge pull request #6644 from sigmavirus24/bug/6643Ian Stapleton Cordascobefore adoption3587a5f

lines 1–8why, one step back
1import requests.adapters
234def test_request_url_trims_leading_path_separators():5 """See also https://github.com/psf/requests/issues/6643."""6 a = requests.adapters.HTTPAdapter()7 p = requests.Request(method="GET", url="http://127.0.0.1:10000//v:h").prepare()8 assert "/v:h" == a.request_url(p, {})