File tree 1 file changed +5
-2
lines changed 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,9 @@ async def some_coroutine():
66
66
assert not isawaitable (some_coroutine )
67
67
assert not is_awaitable (some_coroutine )
68
68
69
+ @mark .asyncio
69
70
@mark .filterwarnings ("ignore:.* was never awaited:RuntimeWarning" )
70
- def recognizes_a_coroutine_object ():
71
+ async def recognizes_a_coroutine_object ():
71
72
async def some_coroutine ():
72
73
return False # pragma: no cover
73
74
@@ -83,8 +84,9 @@ def some_old_style_coroutine():
83
84
assert is_awaitable (some_old_style_coroutine ())
84
85
assert is_awaitable (some_old_style_coroutine ())
85
86
87
+ @mark .asyncio
86
88
@mark .filterwarnings ("ignore:.* was never awaited:RuntimeWarning" )
87
- def recognizes_a_future_object ():
89
+ async def recognizes_a_future_object ():
88
90
async def some_coroutine ():
89
91
return False # pragma: no cover
90
92
@@ -93,6 +95,7 @@ async def some_coroutine():
93
95
assert is_awaitable (some_future )
94
96
assert is_awaitable (some_future )
95
97
98
+ @mark .asyncio
96
99
@mark .filterwarnings ("ignore:.* was never awaited:RuntimeWarning" )
97
100
def declines_an_async_generator ():
98
101
async def some_async_generator ():
You can’t perform that action at this time.
0 commit comments