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

Commit6fb5f7f

Browse files
authored
gh-131707: fix unawaited coroutine warning in test_coroutines.Corouti… (#131708)
gh-131707: fix unawaited coroutine warning in test_coroutines.CoroutineTest.test_17
1 parent7d9442f commit6fb5f7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Lib/test/test_coroutines.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,8 +1199,8 @@ async def __anext__(self):
11991199
def__aiter__(self):
12001200
returnself
12011201

1202-
anext_awaitable=anext(A(),"a").__await__()
1203-
self.assertRaises(TypeError,anext_awaitable.close,1)
1202+
withcontextlib.closing(anext(A(),"a").__await__())asanext_awaitable:
1203+
self.assertRaises(TypeError,anext_awaitable.close,1)
12041204

12051205
deftest_with_1(self):
12061206
classManager:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp