Skip to content

Commit 215986b

Browse files
yoffRasmusWL
andauthored
Apply suggestions from code review
Co-authored-by: Rasmus Wriedt Larsen <[email protected]>
1 parent 05d156b commit 215986b

File tree

1 file changed

+4
-4
lines changed
  • python/ql/test/experimental/dataflow/variable-capture

1 file changed

+4
-4
lines changed

python/ql/test/experimental/dataflow/variable-capture/nonlocal.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,29 @@ def out():
3636
sinkO1 = ""
3737
def captureOut1():
3838
nonlocal sinkO1
39-
sinkO1 = "source"
39+
sinkO1 = SOURCE
4040
captureOut1()
4141
SINK(sinkO1) #$ MISSING:captured
4242

4343
sinkO2 = ""
4444
def captureOut2():
4545
def m():
4646
nonlocal sinkO2
47-
sinkO2 = "source"
47+
sinkO2 = SOURCE
4848
m()
4949
captureOut2()
5050
SINK(sinkO2) #$ MISSING:captured
5151

5252
nonSink0 = ""
5353
def captureOut1NotCalled():
5454
nonlocal nonSink0
55-
nonSink0 = "source"
55+
nonSink0 = SOURCE
5656
SINK_F(nonSink0)
5757

5858
def captureOut2NotCalled():
5959
def m():
6060
nonlocal nonSink0
61-
nonSink0 = "source"
61+
nonSink0 = SOURCE
6262
captureOut2NotCalled()
6363
SINK_F(nonSink0)
6464

0 commit comments

Comments
 (0)