gh-131707: fix unawaited coroutine warning in test_coroutines.Corouti… (#131708)
gh-131707: fix unawaited coroutine warning in test_coroutines.CoroutineTest.test_17
This commit is contained in:
parent
7d9442f0d5
commit
6fb5f7f4d9
@ -1199,7 +1199,7 @@ class CoroutineTest(unittest.TestCase):
|
|||||||
def __aiter__(self):
|
def __aiter__(self):
|
||||||
return self
|
return self
|
||||||
|
|
||||||
anext_awaitable = anext(A(), "a").__await__()
|
with contextlib.closing(anext(A(), "a").__await__()) as anext_awaitable:
|
||||||
self.assertRaises(TypeError, anext_awaitable.close, 1)
|
self.assertRaises(TypeError, anext_awaitable.close, 1)
|
||||||
|
|
||||||
def test_with_1(self):
|
def test_with_1(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user