4 asyncio = pytest.importorskip(
"asyncio")
5 m = pytest.importorskip(
"pybind11_tests.async_module")
10 loop = asyncio.new_event_loop()
20 assert 5 == event_loop.run_until_complete(
get_await_result(m.SupportsAsync()))
24 with pytest.raises(TypeError):
def test_await_missing(event_loop)
def test_await(event_loop)