MCPcopy Index your code
hub / github.com/ipython/ipython / test_autoawait_asyncio_wrong_sleep

Method test_autoawait_asyncio_wrong_sleep

tests/test_async_helpers.py:447–456  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

445
446 @skip_without("trio")
447 def test_autoawait_asyncio_wrong_sleep(self):
448 iprc("%autoawait asyncio")
449 res = iprc_nr(
450 """
451 import trio
452 await trio.sleep(0)
453 """
454 )
455 with self.assertRaises(RuntimeError):
456 res.raise_error()
457
458 def tearDown(self):
459 ip.loop_runner = "asyncio"

Callers

nothing calls this directly

Calls 3

iprcFunction · 0.85
iprc_nrFunction · 0.85
raise_errorMethod · 0.80

Tested by

no test coverage detected