pycdc/tests/input/reraise.py
Eloïse Brocas d35347e569
add support of jump_if_not_exc_match and reraise
Signed-off-by: Eloïse Brocas <ebrocas@quarkslab.com>
2026-03-06 17:03:14 +01:00

17 lines
No EOL
389 B
Python

# This tests come from CPython test suite, some of them are a little bit modified.
def intricate_try_except():
try:
try:
a = 1
except AssertionError as a:
print(a)
except TypeError:
raise
except Exception as e:
raise e
def reraise_example():
try:
1/0
except ZeroDivisionError:
raise