File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ def _make_asyncio_fixture_function(
176
176
177
177
178
178
def _is_coroutine_or_asyncgen (obj : Any ) -> bool :
179
- return asyncio .iscoroutinefunction (obj ) or inspect .isasyncgenfunction (obj )
179
+ return inspect .iscoroutinefunction (obj ) or inspect .isasyncgenfunction (obj )
180
180
181
181
182
182
def _get_asyncio_mode (config : Config ) -> Mode :
@@ -447,7 +447,7 @@ class Coroutine(PytestAsyncioFunction):
447
447
@staticmethod
448
448
def _can_substitute (item : Function ) -> bool :
449
449
func = item .obj
450
- return asyncio .iscoroutinefunction (func )
450
+ return inspect .iscoroutinefunction (func )
451
451
452
452
def runtest (self ) -> None :
453
453
self .obj = wrap_in_sync (
@@ -512,7 +512,7 @@ def _can_substitute(item: Function) -> bool:
512
512
return (
513
513
getattr (func , "is_hypothesis_test" , False ) # type: ignore[return-value]
514
514
and getattr (func , "hypothesis" , None )
515
- and asyncio .iscoroutinefunction (func .hypothesis .inner_test )
515
+ and inspect .iscoroutinefunction (func .hypothesis .inner_test )
516
516
)
517
517
518
518
def runtest (self ) -> None :
You can’t perform that action at this time.
0 commit comments