MCPcopy Index your code
hub / github.com/python/cpython / test_send_recv_main

Method test_send_recv_main

Lib/test/test__interpchannels.py:673–680  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

671 # send/recv
672
673 def test_send_recv_main(self):
674 cid = _channels.create(REPLACE)
675 orig = b'spam'
676 _channels.send(cid, orig, blocking=False)
677 obj = recv_nowait(cid)
678
679 self.assertEqual(obj, orig)
680 self.assertIsNot(obj, orig)
681
682 def test_send_recv_same_interpreter(self):
683 id1 = _interpreters.create()

Callers

nothing calls this directly

Calls 5

recv_nowaitFunction · 0.85
assertIsNotMethod · 0.80
createMethod · 0.45
sendMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected