Skip to content

Commit

Permalink
Update test_yield_from from CPython 3.10.6
Browse files Browse the repository at this point in the history
  • Loading branch information
CPython Developers authored and youknowone committed Aug 14, 2022
1 parent ead12b5 commit 9571a68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lib/test/test_yield_from.py
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,9 @@ def two():
res.append(g1.throw(MyErr))
except StopIteration:
pass
except:
self.assertEqual(res, [0, 1, 2, 3])
raise
# Check with close
class MyIt(object):
def __iter__(self):
Expand Down

0 comments on commit 9571a68

Please sign in to comment.