diff options
Diffstat (limited to 'tests/test_async.py')
-rw-r--r-- | tests/test_async.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_async.py b/tests/test_async.py index df4489c4..83a4c503 100644 --- a/tests/test_async.py +++ b/tests/test_async.py @@ -1,11 +1,10 @@ -# -*- coding: utf-8 -*- import pytest asyncio = pytest.importorskip("asyncio") m = pytest.importorskip("pybind11_tests.async_module") -@pytest.fixture +@pytest.fixture() def event_loop(): loop = asyncio.new_event_loop() yield loop @@ -17,7 +16,7 @@ async def get_await_result(x): def test_await(event_loop): - assert 5 == event_loop.run_until_complete(get_await_result(m.SupportsAsync())) + assert event_loop.run_until_complete(get_await_result(m.SupportsAsync())) == 5 def test_await_missing(event_loop): |