Return a side_effect that closes the coroutine then raises *exc*.
(exc)
| 1590 | |
| 1591 | # Helper: side_effect for asyncio.run that closes the coroutine and raises |
| 1592 | def _close_and_raise(exc): |
| 1593 | """Return a side_effect that closes the coroutine then raises *exc*.""" |
| 1594 | |
| 1595 | def _side_effect(coro): |
| 1596 | coro.close() |
| 1597 | raise exc |
| 1598 | |
| 1599 | return _side_effect |
| 1600 | |
| 1601 | |
| 1602 | # Helper: side_effect for asyncio.run that actually runs the coroutine |
no outgoing calls
no test coverage detected