Skip to content

Commit c8dc021

Browse files
Rename 'scope' to 'loop_scope' in error message
1 parent 998e855 commit c8dc021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_asyncio/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ def _get_marked_loop_scope(asyncio_marker: Mark) -> _ScopeName:
10041004
if asyncio_marker.args or (
10051005
asyncio_marker.kwargs and set(asyncio_marker.kwargs) - {"loop_scope", "scope"}
10061006
):
1007-
raise ValueError("mark.asyncio accepts only a keyword argument 'scope'.")
1007+
raise ValueError("mark.asyncio accepts only a keyword argument 'loop_scope'.")
10081008
if "scope" in asyncio_marker.kwargs:
10091009
if "loop_scope" in asyncio_marker.kwargs:
10101010
raise pytest.UsageError(_DUPLICATE_LOOP_SCOPE_DEFINITION_ERROR)

0 commit comments

Comments
 (0)