(self)
| 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 |
nothing calls this directly
no test coverage detected