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

Method test_autoawait_trio_wrong_sleep

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

Source from the content-addressed store, hash-verified

433
434 @skip_without("trio")
435 def test_autoawait_trio_wrong_sleep(self):
436 iprc("%autoawait trio")
437 res = iprc_nr(
438 """
439 import asyncio
440 await asyncio.sleep(0)
441 """
442 )
443 with self.assertRaises(TypeError):
444 res.raise_error()
445
446 @skip_without("trio")
447 def test_autoawait_asyncio_wrong_sleep(self):

Callers

nothing calls this directly

Calls 3

iprcFunction · 0.85
iprc_nrFunction · 0.85
raise_errorMethod · 0.80

Tested by

no test coverage detected