8000 Update test_yield_from from CPython 3.10.6 · RustPython/RustPython@9571a68 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9571a68

Browse files
CPython Developersyouknowone
CPython Developers
authored andcommitted
Update test_yield_from from CPython 3.10.6
1 parent ead12b5 commit 9571a68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_yield_from.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,9 @@ def two():
946946
res.append(g1.throw(MyErr))
947947
except StopIteration:
948948
pass
949+
except:
950+
self.assertEqual(res, [0, 1, 2, 3])
951+
raise
949952
# Check with close
950953
class MyIt(object):
951954
def __iter__(self):

0 commit comments

Comments
 (0)
0