mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-128078: Use PyErr_SetRaisedException
in _PyGen_SetStopIterationValue
(#128287)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
This commit is contained in:
parent
3efe28a40b
commit
402b91da87
2 changed files with 11 additions and 23 deletions
|
@ -1165,7 +1165,7 @@ class AsyncGenAsyncioTest(unittest.TestCase):
|
|||
with self.assertRaises(StopAsyncIteration):
|
||||
await it.__anext__()
|
||||
res = await anext(it, ('a', 'b'))
|
||||
self.assertEqual(res, ('a', 'b'))
|
||||
self.assertTupleEqual(res, ('a', 'b'))
|
||||
|
||||
self.loop.run_until_complete(run())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue