We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 782c378 commit 3eb67c5Copy full SHA for 3eb67c5
pytest_asyncio/plugin.py
@@ -727,8 +727,7 @@ def pytest_pyfunc_call(pyfuncitem: pytest.Function) -> Optional[object]:
727
Wraps marked tests in a synchronous function
728
where the wrapped test coroutine is executed in an event loop.
729
"""
730
- marker = pyfuncitem.get_closest_marker("asyncio")
731
- if marker is not None:
+ if pyfuncitem.get_closest_marker("asyncio") is not None:
732
if isinstance(pyfuncitem, PytestAsyncioFunction):
733
pass
734
else:
0 commit comments