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