[skip ci] add a bad case

This commit is contained in:
blueloveTH 2025-08-28 19:34:53 +08:00
parent e2a707bb37
commit 648c1bedb4

View File

@ -226,3 +226,15 @@ def finally_return():
assert finally_return() == 1
# nested try
def g():
try:
raise KeyError
except KeyError:
pass
try:
raise IndexError
except IndexError:
g()