Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc1f2743

Browse files
authored
test_pep492
1 parent231cfb3 commitc1f2743

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
importasyncio
1010
fromtest.test_asyncioimportutilsastest_utils
11+
fromtest.support.warnings_helperimportignore_warnings
1112

1213

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

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp