Skip to content

Commit af3b32d

Browse files
committed
refactor: Removed unnecessary code in async fixture preprocessing.
1 parent 8110626 commit af3b32d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pytest_asyncio/plugin.py

-5
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,6 @@ def _preprocess_async_fixtures(
255255
or default_loop_scope
256256
or fixturedef.scope
257257
)
258-
if (
259-
loop_scope == "function"
260-
and "_function_event_loop" not in fixturedef.argnames
261-
):
262-
fixturedef.argnames += ("_function_event_loop",)
263258
_make_asyncio_fixture_function(func, loop_scope)
264259
if "request" not in fixturedef.argnames:
265260
fixturedef.argnames += ("request",)

0 commit comments

Comments
 (0)