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

Method test_shareable

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

Source from the content-addressed store, hash-verified

353 self.assertTrue(cid1 != cid3)
354
355 def test_shareable(self):
356 chan = _channels.create(REPLACE)
357
358 obj = _channels.create(REPLACE)
359 _channels.send(chan, obj, blocking=False)
360 got = recv_nowait(chan)
361
362 self.assertEqual(got, obj)
363 self.assertIs(type(got), type(obj))
364 # XXX Check the following in the channel tests?
365 #self.assertIsNot(got, obj)
366
367
368class ChannelTests(TestBase):

Callers

nothing calls this directly

Calls 5

recv_nowaitFunction · 0.85
createMethod · 0.45
sendMethod · 0.45
assertEqualMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected