test_response_without_release_conn() — requests Function Reference
Architecture documentation for the test_response_without_release_conn() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 1d58a2a0_ec72_34f7_8bf1_b7440fd13215["test_response_without_release_conn()"] 22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"] 1d58a2a0_ec72_34f7_8bf1_b7440fd13215 -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14 b16ffa26_8069_dfbb_db7d_3ae1f171dc98["StringIO()"] 1d58a2a0_ec72_34f7_8bf1_b7440fd13215 -->|calls| b16ffa26_8069_dfbb_db7d_3ae1f171dc98 style 1d58a2a0_ec72_34f7_8bf1_b7440fd13215 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 2187–2195
def test_response_without_release_conn(self):
"""Test `close` call for non-urllib3-like raw objects.
Should work when `release_conn` attr doesn't exist on `response.raw`.
"""
resp = requests.Response()
resp.raw = StringIO.StringIO("test")
assert not resp.raw.closed
resp.close()
assert resp.raw.closed
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_response_without_release_conn() do?
test_response_without_release_conn() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_response_without_release_conn() defined?
test_response_without_release_conn() is defined in tests/test_requests.py at line 2187.
What does test_response_without_release_conn() call?
test_response_without_release_conn() calls 1 function(s): StringIO.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free