Skip to content

Commit b72fc3b

Browse files
committed
Add test for RustPython#867
1 parent af7a89a commit b72fc3b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/snippets/try_exceptions.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,14 @@ def f():
182182
1/0
183183
except ZeroDivisionError:
184184
try:
185-
raise
185+
raise
186186
except NameError:
187187
pass
188188
raise
189+
190+
# Regression https://github.com/RustPython/RustPython/issues/867
191+
for _ in [1, 2]:
192+
try:
193+
raise ArithmeticError()
194+
except ArithmeticError as e:
195+
continue

0 commit comments

Comments
 (0)