3 from pybind11_tests
import async_module
as m
8 loop
= asyncio
.new_event_loop()
13 async def get_await_result(x
):
17 def test_await(event_loop
):
18 assert 5 == event_loop
.run_until_complete(get_await_result(m
.SupportsAsync()))
21 def test_await_missing(event_loop
):
22 with pytest
.raises(TypeError):
23 event_loop
.run_until_complete(get_await_result(m
.DoesNotSupportAsync()))