Skip to content

Commit 7cbbf3b

Browse files
committed
Python: slightly nicer test
1 parent 39f134c commit 7cbbf3b

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/dict.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,26 @@ def SINK_F(x):
3232
def Out():
3333
sinkO1 = { "x": "" }
3434
def captureOut1():
35-
sinkO1["x"] = "source"
35+
sinkO1["x"] = SOURCE
3636
captureOut1()
3737
SINK(sinkO1["x"]) #$ MISSING:captured
3838

3939
sinkO2 = { "x": "" }
4040
def captureOut2():
4141
def m():
42-
sinkO2["x"] = "source"
42+
sinkO2["x"] = SOURCE
4343
m()
4444
captureOut2()
4545
SINK(sinkO2["x"]) #$ MISSING:captured
4646

4747
nonSink0 = { "x": "" }
4848
def captureOut1NotCalled():
49-
nonSink0["x"] = "source"
49+
nonSink0["x"] = SOURCE
5050
SINK_F(nonSink0["x"])
5151

5252
def captureOut2NotCalled():
5353
def m():
54-
nonSink0["x"] = "source"
54+
nonSink0["x"] = SOURCE
5555
captureOut2NotCalled()
5656
SINK_F(nonSink0["x"])
5757

0 commit comments

Comments
 (0)