Skip to content

Commit 8110626

Browse files
committed
refactor: Remove exception from injecting the scoped event loop into tests with function loop scope.
This was needed for compatibility with the *event_loop* fixture which has since been removed.
1 parent 41818e3 commit 8110626

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pytest_asyncio/plugin.py

-2
Original file line numberDiff line numberDiff line change
@@ -657,8 +657,6 @@ def pytest_generate_tests(metafunc: Metafunc) -> None:
657657
return
658658
default_loop_scope = _get_default_test_loop_scope(metafunc.config)
659659
loop_scope = _get_marked_loop_scope(marker, default_loop_scope)
660-
if loop_scope == "function":
661-
return
662660
event_loop_fixture_id = f"_{loop_scope}_event_loop"
663661
# This specific fixture name may already be in metafunc.argnames, if this
664662
# test indirectly depends on the fixture. For example, this is the case

0 commit comments

Comments
 (0)