Skip to content

Commit deecec7

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c59e2b9 commit deecec7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pytest_asyncio/plugin.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,9 @@ def pytest_runtest_setup(item: pytest.Item) -> None:
10041004

10051005
def _get_marked_loop_scope(asyncio_marker: Mark) -> _ScopeName:
10061006
assert asyncio_marker.name == "asyncio"
1007-
if asyncio_marker.args or (asyncio_marker.kwargs and set(asyncio_marker.kwargs) - {"loop_scope", "scope"}):
1007+
if asyncio_marker.args or (
1008+
asyncio_marker.kwargs and set(asyncio_marker.kwargs) - {"loop_scope", "scope"}
1009+
):
10081010
raise ValueError("mark.asyncio accepts only a keyword argument 'scope'.")
10091011
if "scope" in asyncio_marker.kwargs:
10101012
if "loop_scope" in asyncio_marker.kwargs:

0 commit comments

Comments
 (0)