Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c1f2743

Browse files
authored
test_pep492
1 parent 231cfb3 commit c1f2743

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_asyncio/test_pep492.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import asyncio
1010
from test.test_asyncio import utils as test_utils
11+
from test.support.warnings_helper import ignore_warnings
1112

1213

1314
def tearDownModule():
@@ -124,7 +125,7 @@ def foo(): yield
124125

125126
self.assertFalse(asyncio.iscoroutine(foo()))
126127

127-
128+
@ignore_warnings(category=DeprecationWarning)
128129
def test_iscoroutinefunction(self):
129130
async def foo(): pass
130131
self.assertTrue(asyncio.iscoroutinefunction(foo))

0 commit comments

Comments
 (0)