Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ _testPeek
Method
_testPeek
Lib/test/test_socket.py:2511–2513 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
2509
self.assertEqual(self.data, data)
2510
2511
def
_testPeek(self):
2512
self.data = b
'spam'
2513
self.cli.sendto(self.data, 0, (HOST, self.port))
2514
2515
@requireAttrs(socket.socket,
'recvmsg'
)
2516
def
testSendAndRecvMsg(self):
Callers
nothing calls this directly
Calls
1
sendto
Method · 0.45
Tested by
no test coverage detected