File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
python/ql/test/experimental/dataflow/variable-capture Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,29 +36,29 @@ def out():
36
36
sinkO1 = ""
37
37
def captureOut1 ():
38
38
nonlocal sinkO1
39
- sinkO1 = "source"
39
+ sinkO1 = SOURCE
40
40
captureOut1 ()
41
41
SINK (sinkO1 ) #$ MISSING:captured
42
42
43
43
sinkO2 = ""
44
44
def captureOut2 ():
45
45
def m ():
46
46
nonlocal sinkO2
47
- sinkO2 = "source"
47
+ sinkO2 = SOURCE
48
48
m ()
49
49
captureOut2 ()
50
50
SINK (sinkO2 ) #$ MISSING:captured
51
51
52
52
nonSink0 = ""
53
53
def captureOut1NotCalled ():
54
54
nonlocal nonSink0
55
- nonSink0 = "source"
55
+ nonSink0 = SOURCE
56
56
SINK_F (nonSink0 )
57
57
58
58
def captureOut2NotCalled ():
59
59
def m ():
60
60
nonlocal nonSink0
61
- nonSink0 = "source"
61
+ nonSink0 = SOURCE
62
62
captureOut2NotCalled ()
63
63
SINK_F (nonSink0 )
64
64
You can’t perform that action at this time.
0 commit comments