(self)
| 333 | |
| 334 | @coroutine_test |
| 335 | async def test_wrapped_coroutine(self): |
| 336 | async def c_f() -> int: |
| 337 | return 42 |
| 338 | |
| 339 | d = deferred_from_coro(c_f()) |
| 340 | result = deferred_to_future(d) |
| 341 | assert isinstance(result, Future) |
| 342 | future_result = await result |
| 343 | assert future_result == 42 |
| 344 | |
| 345 | @coroutine_test |
| 346 | async def test_wrapped_coroutine_asyncio(self): |
nothing calls this directly
no test coverage detected