repositori / bagas / requests

requests public ready

https://github.com/psf/requests commit 3c7baaa 48 berkas · 374 potongan 2026-11-21T15:17:50Z
48berkas
36berkas python
374potongan
python 36 markdown 5 yaml 2 text 2 toml 1 css 1 html 1
tests/test_adapters.pypython 8 baris ditampilkan
1
import requests.adapters
2
3
4
def test_request_url_handles_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, {})