Skip to content

Commit b990fac

Browse files
committed
Python: Fix test failures.
How could the tests fail because of autoformatting, you may ask? The answer is deprecation warnings. These specify the location of the deprecated entity, and due to autoformatting these moved around.
1 parent ab4cef5 commit b990fac

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

python/ql/test/3/library-tests/PointsTo/consts/BooleanConstants.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
WARNING: Predicate points_to has been deprecated and may be removed in future (BooleanConstants.ql:8,5-24)
2-
WARNING: Predicate points_to has been deprecated and may be removed in future (BooleanConstants.ql:11,5-24)
1+
WARNING: Predicate points_to has been deprecated and may be removed in future (BooleanConstants.ql:6,25-44)
2+
WARNING: Predicate points_to has been deprecated and may be removed in future (BooleanConstants.ql:7,29-48)
33
| module.py | 2 | ControlFlowNode for ImportExpr | import | true |
44
| module.py | 2 | ControlFlowNode for sys | import | true |
55
| module.py | 3 | ControlFlowNode for Compare | import | false |

python/ql/test/library-tests/PointsTo/customise/test.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
WARNING: Type CustomPointsToOriginFact has been deprecated and may be removed in future (test.ql:8,27-51)
1+
WARNING: Type CustomPointsToOriginFact has been deprecated and may be removed in future (test.ql:9,27-51)
22
| 9 | ControlFlowNode for has_type_int | Function has_type_int | builtin-class function |
33
| 9 | ControlFlowNode for has_type_int() | has_type_int() | builtin-class int |
44
| 9 | ControlFlowNode for x | has_type_int() | builtin-class int |

python/ql/test/library-tests/PointsTo/extensions/Extend.expected

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
WARNING: Predicate points_to has been deprecated and may be removed in future (Extend.ql:58,9-28)
2-
WARNING: Type CustomPointsToAttribute has been deprecated and may be removed in future (Extend.ql:27,35-58)
3-
WARNING: Type CustomPointsToObjectFact has been deprecated and may be removed in future (Extend.ql:42,32-56)
4-
WARNING: Type CustomPointsToOriginFact has been deprecated and may be removed in future (Extend.ql:9,28-52)
5-
WARNING: Type CustomPointsToOriginFact has been deprecated and may be removed in future (Extend.ql:55,38-62)
1+
WARNING: Predicate points_to has been deprecated and may be removed in future (Extend.ql:50,32-51)
2+
WARNING: Type CustomPointsToAttribute has been deprecated and may be removed in future (Extend.ql:22,34-57)
3+
WARNING: Type CustomPointsToObjectFact has been deprecated and may be removed in future (Extend.ql:38,32-56)
4+
WARNING: Type CustomPointsToOriginFact has been deprecated and may be removed in future (Extend.ql:5,28-52)
5+
WARNING: Type CustomPointsToOriginFact has been deprecated and may be removed in future (Extend.ql:49,38-62)
66
| test.py:4:1:4:3 | ControlFlowNode for one | int 1 |
77
| test.py:5:1:5:3 | ControlFlowNode for two | int 2 |
88
| test.py:8:1:8:1 | ControlFlowNode for IntegerLiteral | int 1 |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
WARNING: Predicate points_to has been deprecated and may be removed in future (PointsToWithContext.ql:8,7-26)
1+
WARNING: Predicate points_to has been deprecated and may be removed in future (PointsToWithContext.ql:7,7-26)
22
| a_simple.py:2 | ControlFlowNode for FloatLiteral | float 1.0 | builtin-class float | 2 | import |
33
| a_simple.py:2 | ControlFlowNode for f1 | float 1.0 | builtin-class float | 2 | import |
44
| a_simple.py:3 | ControlFlowNode for dict | builtin-class dict | builtin-class type | 3 | import |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
WARNING: Predicate points_to has been deprecated and may be removed in future (PointsToWithType.ql:7,7-26)
1+
WARNING: Predicate points_to has been deprecated and may be removed in future (PointsToWithType.ql:6,7-26)
22
| a_simple.py:2 | ControlFlowNode for FloatLiteral | float 1.0 | builtin-class float | 2 |
33
| a_simple.py:2 | ControlFlowNode for f1 | float 1.0 | builtin-class float | 2 |
44
| a_simple.py:3 | ControlFlowNode for dict | builtin-class dict | builtin-class type | 3 |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
WARNING: Predicate ssa_variable_points_to has been deprecated and may be removed in future (SSA.ql:10,1-33)
1+
WARNING: Predicate ssa_variable_points_to has been deprecated and may be removed in future (SSA.ql:10,5-37)
22
| __init__.py:0 | __name___0 = ScopeEntryDefinition | 'code' | builtin-class str |
33
| __init__.py:0 | __name___0 = ScopeEntryDefinition | 'code.package' | builtin-class str |
44
| __init__.py:0 | __name___0 = ScopeEntryDefinition | 'code.test_package' | builtin-class str |

python/ql/test/library-tests/taint/exception_traceback/TestNode.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
WARNING: Predicate getNode has been deprecated and may be removed in future (TestNode.ql:8,43-50)
1+
WARNING: Predicate getNode has been deprecated and may be removed in future (TestNode.ql:7,43-50)
22
| test.py:10:11:10:47 | test.py:10 | MyException() | exception.kind |
33
| test.py:15:25:15:25 | test.py:15 | e | exception.kind |
44
| test.py:16:13:16:34 | test.py:16 | Attribute() | exception.info |

python/ql/test/library-tests/taint/extensions/TestNode.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
WARNING: Predicate getNode has been deprecated and may be removed in future (TestNode.ql:7,77-84)
1+
WARNING: Predicate getNode has been deprecated and may be removed in future (TestNode.ql:5,77-84)
22
| Taint simple.test | visitor.py:10 | arg | p2 = simple.test |
33
| Taint simple.test | visitor.py:13 | arg | p2 = simple.test |
44
| Taint simple.test | visitor.py:18 | arg | |

python/ql/test/library-tests/taint/extensions/TestStep.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
WARNING: Predicate getNode has been deprecated and may be removed in future (TestStep.ql:9,74-81)
2-
WARNING: Predicate getNode has been deprecated and may be removed in future (TestStep.ql:11,74-81)
1+
WARNING: Predicate getNode has been deprecated and may be removed in future (TestStep.ql:6,77-84)
2+
WARNING: Predicate getNode has been deprecated and may be removed in future (TestStep.ql:8,17-24)
33
| Taint simple.test | visitor.py:10 | arg | p2 = simple.test | --> | Taint simple.test | visitor.py:13 | arg | p2 = simple.test |
44
| Taint simple.test | visitor.py:18 | arg | | --> | Taint simple.test | visitor.py:19 | arg | |
55
| Taint simple.test | visitor.py:19 | arg | | --> | Taint simple.test | visitor.py:26 | Attribute() | |

python/ql/test/library-tests/taint/general/Contexts.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
WARNING: Type CallContext has been deprecated and may be removed in future (Contexts.ql:6,6-17)
2-
WARNING: Type CallContext has been deprecated and may be removed in future (Contexts.ql:7,14-25)
1+
WARNING: Type CallContext has been deprecated and may be removed in future (Contexts.ql:5,6-17)
2+
WARNING: Type CallContext has been deprecated and may be removed in future (Contexts.ql:7,12-23)
33
| assignment.py:1 | p0 = simple.test | Function test |
44
| assignment.py:1 | p1 = simple.test | Function test |
55
| assignment.py:1 | p2 = simple.test | Function test |

0 commit comments

Comments
 (0)