@@ -66,16 +66,15 @@ async def some_coroutine():
6666 assert not isawaitable (some_coroutine )
6767 assert not is_awaitable (some_coroutine )
6868
69- @mark .filterwarnings ("ignore::RuntimeWarning" )
69+ @mark .filterwarnings ("ignore:.* was never awaited :RuntimeWarning" )
7070 def recognizes_a_coroutine_object ():
7171 async def some_coroutine ():
7272 return False # pragma: no cover
7373
7474 assert isawaitable (some_coroutine ())
7575 assert is_awaitable (some_coroutine ())
7676
77- @mark .filterwarnings ("ignore::RuntimeWarning" )
78- @mark .filterwarnings ("ignore::DeprecationWarning" )
77+ @mark .filterwarnings ("ignore::Warning" ) # Deprecation and Runtime
7978 def recognizes_an_old_style_coroutine ():
8079 @asyncio .coroutine
8180 def some_old_style_coroutine ():
@@ -84,7 +83,7 @@ def some_old_style_coroutine():
8483 assert is_awaitable (some_old_style_coroutine ())
8584 assert is_awaitable (some_old_style_coroutine ())
8685
87- @mark .filterwarnings ("ignore::RuntimeWarning" )
86+ @mark .filterwarnings ("ignore:.* was never awaited :RuntimeWarning" )
8887 def recognizes_a_future_object ():
8988 async def some_coroutine ():
9089 return False # pragma: no cover
@@ -94,7 +93,7 @@ async def some_coroutine():
9493 assert is_awaitable (some_future )
9594 assert is_awaitable (some_future )
9695
97- @mark .filterwarnings ("ignore::RuntimeWarning" )
96+ @mark .filterwarnings ("ignore:.* was never awaited :RuntimeWarning" )
9897 def declines_an_async_generator ():
9998 async def some_async_generator ():
10099 yield True # pragma: no cover
0 commit comments