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

Method test_run_string_arg_resolved

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

Source from the content-addressed store, hash-verified

652 # Note: this test caused crashes on some buildbots (bpo-33615).
653 @unittest.skip('disabled until high-level channels exist')
654 def test_run_string_arg_resolved(self):
655 cid = _channels.create(REPLACE)
656 cid = _channels._channel_id(cid, _resolve=True)
657 interp = _interpreters.create()
658
659 out = _run_output(interp, dedent("""
660 import _interpchannels as _channels
661 print(chan.id.end)
662 _channels.send(chan.id, b'spam', blocking=False)
663 """),
664 dict(chan=cid.send))
665 obj = recv_nowait(cid)
666
667 self.assertEqual(obj, b'spam')
668 self.assertEqual(out.strip(), 'send')
669
670 #-------------------
671 # send/recv

Callers

nothing calls this directly

Calls 6

_run_outputFunction · 0.90
dedentFunction · 0.90
recv_nowaitFunction · 0.85
createMethod · 0.45
assertEqualMethod · 0.45
stripMethod · 0.45

Tested by

no test coverage detected