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 5393045 commit 72646b4Copy full SHA for 72646b4
1 file changed
pytest_asyncio/plugin.py
@@ -523,9 +523,9 @@ def _loop_scope(self) -> _ScopeName:
523
marker is present, the the loop scope is determined by the configuration
524
value of `asyncio_default_test_loop_scope`, instead.
525
"""
526
- default_loop_scope = _get_default_test_loop_scope(self.config)
527
marker = self.get_closest_marker("asyncio")
528
assert marker is not None
+ default_loop_scope = _get_default_test_loop_scope(self.config)
529
loop_scope = marker.kwargs.get("loop_scope") or marker.kwargs.get("scope")
530
if loop_scope is None:
531
return default_loop_scope
0 commit comments