Skip to content

Commit fb07a56

Browse files
committed
Python: adjust test expectations
1 parent ded3974 commit fb07a56

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

python/ql/test/library-tests/dataflow/coverage/localFlow.expected

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,4 @@
88
| test.py:208:1:208:53 | Entry definition for SsaSourceVariable SINK | test.py:210:5:210:8 | ControlFlowNode for SINK |
99
| test.py:208:1:208:53 | Entry definition for SsaSourceVariable SOURCE | test.py:209:25:209:30 | ControlFlowNode for SOURCE |
1010
| test.py:209:5:209:5 | ControlFlowNode for x | test.py:210:10:210:10 | ControlFlowNode for x |
11-
| test.py:209:9:209:68 | ControlFlowNode for .0 | test.py:209:9:209:68 | ControlFlowNode for .0 |
1211
| test.py:209:9:209:68 | ControlFlowNode for ListComp | test.py:209:5:209:5 | ControlFlowNode for x |
13-
| test.py:209:16:209:16 | ControlFlowNode for v | test.py:209:45:209:45 | ControlFlowNode for v |
14-
| test.py:209:40:209:40 | ControlFlowNode for u | test.py:209:56:209:56 | ControlFlowNode for u |
15-
| test.py:209:51:209:51 | ControlFlowNode for z | test.py:209:67:209:67 | ControlFlowNode for z |
16-
| test.py:209:62:209:62 | ControlFlowNode for y | test.py:209:10:209:10 | ControlFlowNode for y |

python/ql/test/library-tests/dataflow/regression/dataflow.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@
2323
| test.py:195:9:195:14 | ControlFlowNode for SOURCE | test.py:199:14:199:14 | ControlFlowNode for t |
2424
| test.py:202:10:202:15 | ControlFlowNode for SOURCE | test.py:204:14:204:14 | ControlFlowNode for i |
2525
| test.py:202:10:202:15 | ControlFlowNode for SOURCE | test.py:205:10:205:10 | ControlFlowNode for i |
26+
| test.py:208:12:208:17 | ControlFlowNode for SOURCE | test.py:214:14:214:14 | ControlFlowNode for x |

python/ql/test/library-tests/dataflow/regression/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,4 +211,4 @@ def flow_in_generator():
211211

212212
def flow_from_generator():
213213
for x in flow_in_generator():
214-
SINK(x) # Flow not found
214+
SINK(x)

python/ql/test/library-tests/dataflow/tainttracking/defaultAdditionalTaintStep/test_collections.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def test_access(x, y, z):
6161
iter(tainted_list), # $ tainted
6262
next(iter(tainted_list)), # $ MISSING: tainted
6363
[i for i in tainted_list], # $ tainted
64-
[tainted_list for _i in [1,2,3]], # $ MISSING: tainted
64+
[tainted_list for _i in [1,2,3]], # $ tainted
6565
)
6666

6767
a, b, c = tainted_list[0:3]
@@ -85,7 +85,7 @@ def test_access_explicit(x, y, z):
8585
iter(tainted_list), # $ tainted
8686
next(iter(tainted_list)), # $ tainted
8787
[i for i in tainted_list], # $ tainted
88-
[tainted_list for i in [1,2,3]], # $ MISSING: tainted
88+
[tainted_list for i in [1,2,3]], # $ tainted
8989
[TAINTED_STRING for i in [1,2,3]], # $ tainted
9090
[tainted_list], # $ tainted
9191
)

0 commit comments

Comments
 (0)