test_none_timeout() — requests Function Reference
Architecture documentation for the test_none_timeout() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 5f03e7bc_40ea_b100_bc0f_25e072915581["test_none_timeout()"] 197b2331_292a_b6cc_3228_c8b753441d51["TestTimeout"] 5f03e7bc_40ea_b100_bc0f_25e072915581 -->|defined in| 197b2331_292a_b6cc_3228_c8b753441d51 style 5f03e7bc_40ea_b100_bc0f_25e072915581 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 2502–2512
def test_none_timeout(self, httpbin, timeout):
"""Check that you can set None as a valid timeout value.
To actually test this behavior, we'd want to check that setting the
timeout to None actually lets the request block past the system default
timeout. However, this would make the test suite unbearably slow.
Instead we verify that setting the timeout to None does not prevent the
request from succeeding.
"""
r = requests.get(httpbin("get"), timeout=timeout)
assert r.status_code == 200
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_none_timeout() do?
test_none_timeout() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_none_timeout() defined?
test_none_timeout() is defined in tests/test_requests.py at line 2502.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free