Move tests in basic/tests/ up one level preparating to multiple test dirs.
This commit is contained in:
17
tests/basics/try3.py
Normal file
17
tests/basics/try3.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# nested exceptions
|
||||
|
||||
def f():
|
||||
try:
|
||||
foo()
|
||||
except:
|
||||
print("except 1")
|
||||
try:
|
||||
baz()
|
||||
except:
|
||||
print("except 2")
|
||||
bar()
|
||||
|
||||
try:
|
||||
f()
|
||||
except:
|
||||
print("f except")
|
||||
Reference in New Issue
Block a user