Skip to content

Commit 248ac9a

Browse files
committed
refactor: Removed obsolete deprecation warning about *event_loop* being requested in async fixtures.
1 parent 0c90bc6 commit 248ac9a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pytest_asyncio/plugin.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -270,16 +270,6 @@ def _preprocess_async_fixtures(
270270
):
271271
fixturedef.argnames += ("_function_event_loop",)
272272
_make_asyncio_fixture_function(func, loop_scope)
273-
function_signature = inspect.signature(func)
274-
if "event_loop" in function_signature.parameters:
275-
warnings.warn(
276-
PytestDeprecationWarning(
277-
f"{func.__name__} is asynchronous and explicitly "
278-
f'requests the "event_loop" fixture. Asynchronous fixtures and '
279-
f'test functions should use "asyncio.get_running_loop()" '
280-
f"instead."
281-
)
282-
)
283273
if "request" not in fixturedef.argnames:
284274
fixturedef.argnames += ("request",)
285275
_synchronize_async_fixture(fixturedef)

0 commit comments

Comments
 (0)