forked from github/codeql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
42 lines (37 loc) · 625 Bytes
/
test.py
File metadata and controls
42 lines (37 loc) · 625 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#Test that the flow control through nested trys is handled correctly.
def f1():
try:
x = call()
finally:
try:
another_call()
except:
pass
return x
def f2():
try:
x = call()
except:
try:
another_call()
finally:
x = 0
return x
def f3():
try:
x = call()
except:
try:
another_call()
except:
pass
return x
def f4():
try:
x = call()
finally:
try:
another_call()
finally:
x = 0
return x