Skip to content

Commit 3eb67c5

Browse files
committed
[refactor] Simplified implementation of pytest_pyfunc_call.
Signed-off-by: Michael Seifert <[email protected]>
1 parent 782c378 commit 3eb67c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pytest_asyncio/plugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,8 +727,7 @@ def pytest_pyfunc_call(pyfuncitem: pytest.Function) -> Optional[object]:
727727
Wraps marked tests in a synchronous function
728728
where the wrapped test coroutine is executed in an event loop.
729729
"""
730-
marker = pyfuncitem.get_closest_marker("asyncio")
731-
if marker is not None:
730+
if pyfuncitem.get_closest_marker("asyncio") is not None:
732731
if isinstance(pyfuncitem, PytestAsyncioFunction):
733732
pass
734733
else:

0 commit comments

Comments
 (0)