test_urllib3_retries() — requests Function Reference
Architecture documentation for the test_urllib3_retries() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 8514bbc5_aefb_8d59_cb88_8d864f1e0816["test_urllib3_retries()"] 69ebfd6f_8f0c_4586_0c19_2c348e1a42a2["test_requests.py"] 8514bbc5_aefb_8d59_cb88_8d864f1e0816 -->|defined in| 69ebfd6f_8f0c_4586_0c19_2c348e1a42a2 style 8514bbc5_aefb_8d59_cb88_8d864f1e0816 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 2685–2692
def test_urllib3_retries(httpbin):
from urllib3.util import Retry
s = requests.Session()
s.mount("http://", HTTPAdapter(max_retries=Retry(total=2, status_forcelist=[500])))
with pytest.raises(RetryError):
s.get(httpbin("status/500"))
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_urllib3_retries() do?
test_urllib3_retries() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_urllib3_retries() defined?
test_urllib3_retries() is defined in tests/test_requests.py at line 2685.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free