Skip to content

Commit c74444c

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

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

pytest_asyncio/plugin.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -509,15 +509,6 @@ def _from_function(cls, function: Function, /) -> Function:
509509
)
510510
subclass_instance.own_markers = function.own_markers
511511
assert subclass_instance.own_markers == function.own_markers
512-
subclassed_function_signature = inspect.signature(subclass_instance.obj)
513-
if "event_loop" in subclassed_function_signature.parameters:
514-
subclass_instance.warn(
515-
PytestDeprecationWarning(
516-
f"{subclass_instance.name} is asynchronous and explicitly "
517-
f'requests the "event_loop" fixture. Asynchronous fixtures and '
518-
f'test functions should use "asyncio.get_running_loop()" instead.'
519-
)
520-
)
521512
return subclass_instance
522513

523514
@staticmethod

0 commit comments

Comments
 (0)