Skip to content

Commit 5433907

Browse files
committed
Python: Accept more test changes
All are for the better 🎉
1 parent 5bee44d commit 5433907

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,9 @@ class C:
338338

339339
@expects(2)
340340
def test_attribute_reference():
341-
SINK(C.a) #$ MISSING:flow="SOURCE, l:-4 -> C.a"
341+
SINK(C.a) # $ flow="SOURCE, l:-5 -> C.a"
342342
c = C()
343-
SINK(c.a) #$ MISSING:flow="SOURCE, l:-6 -> c.a"
343+
SINK(c.a) # $ MISSING: flow="SOURCE, l:-7 -> c.a"
344344

345345
# overriding __getattr__ should be tested by the class coverage tests
346346

python/ql/test/experimental/dataflow/match/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class Unsafe:
6464
def test_value_pattern():
6565
match SOURCE:
6666
case Unsafe.VALUE as x:
67-
SINK(x) #$ flow="SOURCE, l:-2 -> x" MISSING: flow="SOURCE, l:-5 -> x"
67+
SINK(x) #$ flow="SOURCE, l:-2 -> x" flow="SOURCE, l:-5 -> x"
6868

6969
@expects(2)
7070
def test_sequence_pattern_tuple():

python/ql/test/library-tests/PointsTo/new/ImpliesDataflow.expected

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,5 @@
33
| code/l_calls.py:12:1:12:20 | ControlFlowNode for ClassExpr | code/l_calls.py:16:16:16:18 | ControlFlowNode for cls |
44
| code/l_calls.py:12:1:12:20 | ControlFlowNode for ClassExpr | code/l_calls.py:24:13:24:22 | ControlFlowNode for Attribute() |
55
| code/l_calls.py:12:1:12:20 | ControlFlowNode for ClassExpr | code/l_calls.py:25:16:25:16 | ControlFlowNode for a |
6-
| code/l_calls.py:33:5:33:23 | ControlFlowNode for FunctionExpr | code/l_calls.py:39:1:39:3 | ControlFlowNode for Attribute |
7-
| code/l_calls.py:48:5:48:30 | ControlFlowNode for FunctionExpr | code/l_calls.py:53:1:53:3 | ControlFlowNode for Attribute |
8-
| code/q_super.py:48:5:48:17 | ControlFlowNode for ClassExpr | code/q_super.py:51:25:51:29 | ControlFlowNode for Attribute |
9-
| code/q_super.py:63:5:63:17 | ControlFlowNode for ClassExpr | code/q_super.py:66:19:66:23 | ControlFlowNode for Attribute |
106
| code/t_type.py:3:1:3:16 | ControlFlowNode for ClassExpr | code/t_type.py:6:1:6:9 | ControlFlowNode for type() |
117
| code/t_type.py:3:1:3:16 | ControlFlowNode for ClassExpr | code/t_type.py:13:5:13:13 | ControlFlowNode for type() |

0 commit comments

Comments
 (0)