mirror of
https://github.com/zrax/pycdc.git
synced 2026-06-23 11:34:07 +00:00
17 lines
No EOL
389 B
Python
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 |