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 0c90bc6 commit 248ac9aCopy full SHA for 248ac9a
pytest_asyncio/plugin.py
@@ -270,16 +270,6 @@ def _preprocess_async_fixtures(
270
):
271
fixturedef.argnames += ("_function_event_loop",)
272
_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
283
if "request" not in fixturedef.argnames:
284
fixturedef.argnames += ("request",)
285
_synchronize_async_fixture(fixturedef)
0 commit comments