We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c59e2b9 commit deecec7Copy full SHA for deecec7
pytest_asyncio/plugin.py
@@ -1004,7 +1004,9 @@ def pytest_runtest_setup(item: pytest.Item) -> None:
1004
1005
def _get_marked_loop_scope(asyncio_marker: Mark) -> _ScopeName:
1006
assert asyncio_marker.name == "asyncio"
1007
- if asyncio_marker.args or (asyncio_marker.kwargs and set(asyncio_marker.kwargs) - {"loop_scope", "scope"}):
+ if asyncio_marker.args or (
1008
+ asyncio_marker.kwargs and set(asyncio_marker.kwargs) - {"loop_scope", "scope"}
1009
+ ):
1010
raise ValueError("mark.asyncio accepts only a keyword argument 'scope'.")
1011
if "scope" in asyncio_marker.kwargs:
1012
if "loop_scope" in asyncio_marker.kwargs:
0 commit comments