Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ getresponse
Method
getresponse
Lib/test/test_urllib2.py:386–387 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
384
raise
OSError()
385
386
def
getresponse(self):
387
return
MockHTTPResponse(MockFile(), {}, 200,
"OK"
)
388
389
def
close(self):
390
pass
Callers
15
test_https_client_non_tls_response_ignored
Method · 0.45
make_request_and_skip
Function · 0.45
test_valid_get_response
Method · 0.45
test_get_css
Method · 0.45
test_invalid_get_response
Method · 0.45
test_lambda
Method · 0.45
test_autolinking
Method · 0.45
test_system_methods
Method · 0.45
test_autolink_dotted_methods
Method · 0.45
test_annotations
Method · 0.45
test_404
Method · 0.45
test_reuse_reconnect
Method · 0.45
Calls
2
MockHTTPResponse
Class · 0.85
MockFile
Class · 0.70
Tested by
no test coverage detected