Skip to content

Commit 1b848bb

Browse files
committed
python: fix tests
1 parent 3adaa21 commit 1b848bb

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

python/ql/test/experimental/dataflow/coverage/test_builtins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def test_dict_get():
230230
v = d.get("k")
231231
SINK(v) #$ flow="SOURCE, l:-2 -> v"
232232
v1 = d.get("non-existing", SOURCE)
233-
SINK(v1) #$ flow="SOURCE, l:-1 -> v1"
233+
SINK(v1) #$ MISSING: flow="SOURCE, l:-1 -> v1"
234234

235235
@expects(2)
236236
def test_dict_popitem():

python/ql/test/experimental/dataflow/tainttracking/defaultAdditionalTaintStep/dataflow-consistency.expected

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,17 @@ uniqueParameterNodePosition
2525
uniqueContentApprox
2626
identityLocalStep
2727
| test_async.py:48:9:48:22 | ControlFlowNode for ensure_tainted | Node steps to itself |
28-
| test_collections.py:56:10:56:21 | ControlFlowNode for tainted_list | Node steps to itself |
29-
| test_collections.py:63:9:63:22 | ControlFlowNode for ensure_tainted | Node steps to itself |
30-
| test_collections.py:65:9:65:22 | ControlFlowNode for ensure_tainted | Node steps to itself |
31-
| test_collections.py:79:9:79:22 | ControlFlowNode for ensure_tainted | Node steps to itself |
32-
| test_collections.py:81:9:81:22 | ControlFlowNode for ensure_tainted | Node steps to itself |
28+
| test_collections.py:64:10:64:21 | ControlFlowNode for tainted_list | Node steps to itself |
29+
| test_collections.py:71:9:71:22 | ControlFlowNode for ensure_tainted | Node steps to itself |
30+
| test_collections.py:73:9:73:22 | ControlFlowNode for ensure_tainted | Node steps to itself |
31+
| test_collections.py:88:10:88:21 | ControlFlowNode for tainted_list | Node steps to itself |
32+
| test_collections.py:89:10:89:23 | ControlFlowNode for TAINTED_STRING | Node steps to itself |
33+
| test_collections.py:97:9:97:22 | ControlFlowNode for ensure_tainted | Node steps to itself |
34+
| test_collections.py:99:9:99:22 | ControlFlowNode for ensure_tainted | Node steps to itself |
35+
| test_collections.py:112:9:112:22 | ControlFlowNode for ensure_tainted | Node steps to itself |
3336
| test_collections.py:114:9:114:22 | ControlFlowNode for ensure_tainted | Node steps to itself |
34-
| test_collections.py:116:9:116:22 | ControlFlowNode for ensure_tainted | Node steps to itself |
35-
| test_collections.py:213:9:213:15 | ControlFlowNode for my_dict | Node steps to itself |
36-
| test_collections.py:213:22:213:33 | ControlFlowNode for tainted_dict | Node steps to itself |
37+
| test_collections.py:147:9:147:22 | ControlFlowNode for ensure_tainted | Node steps to itself |
38+
| test_collections.py:149:9:149:22 | ControlFlowNode for ensure_tainted | Node steps to itself |
39+
| test_collections.py:246:9:246:15 | ControlFlowNode for my_dict | Node steps to itself |
40+
| test_collections.py:246:22:246:33 | ControlFlowNode for tainted_dict | Node steps to itself |
3741
| test_for.py:24:9:24:22 | ControlFlowNode for ensure_tainted | Node steps to itself |

0 commit comments

Comments
 (0)