Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ accept
Method
accept
Lib/test/mock_socket.py:77–79 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
75
pass
76
77
def
accept(self):
78
self.conn = MockSocket()
79
return
self.conn,
'c'
80
81
def
getsockname(self):
82
return
(
'0.0.0.0'
, 0)
Callers
15
_run_script_and_get_trace
Method · 0.45
test_remote_stack_trace
Method · 0.45
test_async_remote_stack_trace
Method · 0.45
test_asyncgen_remote_stack_trace
Method · 0.45
test_async_gather_remote_stack_trace
Method · 0.45
test_async_staggered_race_remote_stack_trace
Method · 0.45
test_async_global_awaited_by
Method · 0.45
test_subinterpreter_stack_trace
Method · 0.45
test_multiple_subinterpreters_with_threads
Method · 0.45
test_only_active_thread
Method · 0.45
_run_thread_status_test
Method · 0.45
test_thread_status_all_mode_detection
Method · 0.45
Calls
1
MockSocket
Class · 0.70
Tested by
15
_run_script_and_get_trace
Method · 0.36
test_remote_stack_trace
Method · 0.36
test_async_remote_stack_trace
Method · 0.36
test_asyncgen_remote_stack_trace
Method · 0.36
test_async_gather_remote_stack_trace
Method · 0.36
test_async_staggered_race_remote_stack_trace
Method · 0.36
test_async_global_awaited_by
Method · 0.36
test_subinterpreter_stack_trace
Method · 0.36
test_multiple_subinterpreters_with_threads
Method · 0.36
test_only_active_thread
Method · 0.36
_run_thread_status_test
Method · 0.36
test_thread_status_all_mode_detection
Method · 0.36