Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ _testPeek
Method
_testPeek
Lib/test/test_socket.py:2615–2617 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
2613
self.assertEqual(self.data, data)
2614
2615
def
_testPeek(self):
2616
self.data = b
'spam'
2617
self.cli.sendto(self.data, 0, (HOST, self.port))
2618
2619
@requireAttrs(socket.socket,
'recvmsg'
)
2620
def
testSendAndRecvMsg(self):
Callers
nothing calls this directly
Calls
1
sendto
Method · 0.45
Tested by
no test coverage detected