Skip to content

Commit 81f6877

Browse files
committed
Python: Fix up tests.
1 parent 2d8f3bb commit 81f6877

File tree

4 files changed

+0
-18
lines changed

4 files changed

+0
-18
lines changed

python/ql/test/2/library-tests/types/functions/ReturnTypes.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
| 4 | bump_version | builtin-class object |
21
| 6 | ok1 | builtin-class NoneType |
32
| 12 | ok2 | builtin-class int |
43
| 12 | ok2 | builtin-class str |

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ WARNING: Predicate points_to has been deprecated and may be removed in future (P
292292
| g_class_init.py:35 | ControlFlowNode for super | builtin-class super | builtin-class type | 35 | runtime |
293293
| g_class_init.py:35 | ControlFlowNode for super() | super() | builtin-class super | 35 | runtime |
294294
| g_class_init.py:36 | ControlFlowNode for Attribute | super().__init__ | builtin-class method | 36 | runtime |
295-
| g_class_init.py:36 | ControlFlowNode for Attribute() | Attribute() | builtin-class object | 36 | runtime |
296295
| g_class_init.py:36 | ControlFlowNode for D | class D | builtin-class type | 32 | runtime |
297296
| g_class_init.py:36 | ControlFlowNode for self | self | class D | 34 | runtime |
298297
| g_class_init.py:36 | ControlFlowNode for super | builtin-class super | builtin-class type | 36 | runtime |
@@ -728,16 +727,13 @@ WARNING: Predicate points_to has been deprecated and may be removed in future (P
728727
| l_calls.py:62 | ControlFlowNode for c | Builtin-method get | builtin-class method_descriptor | 62 | import |
729728
| l_calls.py:62 | ControlFlowNode for dict | builtin-class dict | builtin-class type | 62 | import |
730729
| l_calls.py:63 | ControlFlowNode for Attribute | Builtin-method get | builtin-class method_descriptor | 63 | import |
731-
| l_calls.py:63 | ControlFlowNode for Attribute() | Attribute() | builtin-class object | 63 | import |
732730
| l_calls.py:63 | ControlFlowNode for Dict | Dict | builtin-class dict | 63 | import |
733731
| l_calls.py:63 | ControlFlowNode for IntegerLiteral | int 5 | builtin-class int | 63 | import |
734732
| l_calls.py:63 | ControlFlowNode for Str | 'foo' | builtin-class str | 63 | import |
735-
| l_calls.py:63 | ControlFlowNode for d | Attribute() | builtin-class object | 63 | import |
736733
| l_calls.py:63 | ControlFlowNode for dict | builtin-class dict | builtin-class type | 63 | import |
737734
| l_calls.py:64 | ControlFlowNode for a | Builtin-method bit_length | builtin-class method_descriptor | 58 | import |
738735
| l_calls.py:64 | ControlFlowNode for b | Attribute() | builtin-class int | 59 | import |
739736
| l_calls.py:64 | ControlFlowNode for c | Builtin-method get | builtin-class method_descriptor | 62 | import |
740-
| l_calls.py:64 | ControlFlowNode for d | Attribute() | builtin-class object | 63 | import |
741737
| m_attributes.py:3 | ControlFlowNode for C | class C | builtin-class type | 3 | import |
742738
| m_attributes.py:3 | ControlFlowNode for ClassExpr | class C | builtin-class type | 3 | import |
743739
| m_attributes.py:3 | ControlFlowNode for object | builtin-class object | builtin-class type | 3 | import |
@@ -884,8 +880,6 @@ WARNING: Predicate points_to has been deprecated and may be removed in future (P
884880
| q_super.py:3 | ControlFlowNode for __init__ | Function __init__ | builtin-class function | 3 | import |
885881
| q_super.py:4 | ControlFlowNode for Attribute | super().__init__ | builtin-class method | 4 | code/q_super.py:12 from runtime |
886882
| q_super.py:4 | ControlFlowNode for Attribute | super().__init__ | builtin-class method | 4 | runtime |
887-
| q_super.py:4 | ControlFlowNode for Attribute() | Attribute() | builtin-class object | 4 | code/q_super.py:12 from runtime |
888-
| q_super.py:4 | ControlFlowNode for Attribute() | Attribute() | builtin-class object | 4 | runtime |
889883
| q_super.py:4 | ControlFlowNode for Base2 | class Base2 | builtin-class type | 1 | code/q_super.py:12 from runtime |
890884
| q_super.py:4 | ControlFlowNode for Base2 | class Base2 | builtin-class type | 1 | runtime |
891885
| q_super.py:4 | ControlFlowNode for self | self | class Base2 | 3 | runtime |
@@ -1055,7 +1049,6 @@ WARNING: Predicate points_to has been deprecated and may be removed in future (P
10551049
| q_super.py:75 | ControlFlowNode for i | super().__init__ | builtin-class method | 75 | runtime |
10561050
| q_super.py:75 | ControlFlowNode for s | super() | builtin-class super | 74 | runtime |
10571051
| q_super.py:76 | ControlFlowNode for i | super().__init__ | builtin-class method | 75 | runtime |
1058-
| q_super.py:76 | ControlFlowNode for i() | i() | builtin-class object | 76 | runtime |
10591052
| r_regressions.py:5 | ControlFlowNode for ClassExpr | class Queue | builtin-class type | 5 | import |
10601053
| r_regressions.py:5 | ControlFlowNode for Queue | class Queue | builtin-class type | 5 | import |
10611054
| r_regressions.py:5 | ControlFlowNode for object | builtin-class object | builtin-class type | 5 | import |

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,6 @@ WARNING: Predicate points_to has been deprecated and may be removed in future (P
405405
| g_class_init.py:35 | ControlFlowNode for super | builtin-class super | builtin-class type | 35 |
406406
| g_class_init.py:35 | ControlFlowNode for super() | super() | builtin-class super | 35 |
407407
| g_class_init.py:36 | ControlFlowNode for Attribute | super().__init__ | builtin-class method | 36 |
408-
| g_class_init.py:36 | ControlFlowNode for Attribute() | Attribute() | builtin-class object | 36 |
409408
| g_class_init.py:36 | ControlFlowNode for D | class D | builtin-class type | 32 |
410409
| g_class_init.py:36 | ControlFlowNode for self | self | class D | 34 |
411410
| g_class_init.py:36 | ControlFlowNode for super | builtin-class super | builtin-class type | 36 |
@@ -801,16 +800,13 @@ WARNING: Predicate points_to has been deprecated and may be removed in future (P
801800
| l_calls.py:62 | ControlFlowNode for c | Builtin-method get | builtin-class method_descriptor | 62 |
802801
| l_calls.py:62 | ControlFlowNode for dict | builtin-class dict | builtin-class type | 62 |
803802
| l_calls.py:63 | ControlFlowNode for Attribute | Builtin-method get | builtin-class method_descriptor | 63 |
804-
| l_calls.py:63 | ControlFlowNode for Attribute() | Attribute() | builtin-class object | 63 |
805803
| l_calls.py:63 | ControlFlowNode for Dict | Dict | builtin-class dict | 63 |
806804
| l_calls.py:63 | ControlFlowNode for IntegerLiteral | int 5 | builtin-class int | 63 |
807805
| l_calls.py:63 | ControlFlowNode for Str | 'foo' | builtin-class str | 63 |
808-
| l_calls.py:63 | ControlFlowNode for d | Attribute() | builtin-class object | 63 |
809806
| l_calls.py:63 | ControlFlowNode for dict | builtin-class dict | builtin-class type | 63 |
810807
| l_calls.py:64 | ControlFlowNode for a | Builtin-method bit_length | builtin-class method_descriptor | 58 |
811808
| l_calls.py:64 | ControlFlowNode for b | Attribute() | builtin-class int | 59 |
812809
| l_calls.py:64 | ControlFlowNode for c | Builtin-method get | builtin-class method_descriptor | 62 |
813-
| l_calls.py:64 | ControlFlowNode for d | Attribute() | builtin-class object | 63 |
814810
| s_scopes.py:4 | ControlFlowNode for True | bool True | builtin-class bool | 4 |
815811
| s_scopes.py:4 | ControlFlowNode for float | bool True | builtin-class bool | 4 |
816812
| s_scopes.py:7 | ControlFlowNode for C2 | class C2 | builtin-class type | 7 |

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@
232232
| g_class_init.py:35 | ControlFlowNode for super | runtime | builtin-class super | builtin-class type |
233233
| g_class_init.py:35 | ControlFlowNode for super() | runtime | super(class D, self instance of D) | builtin-class super |
234234
| g_class_init.py:36 | ControlFlowNode for Attribute | runtime | Method(builtin method __init__, self instance of D) | builtin-class method |
235-
| g_class_init.py:36 | ControlFlowNode for Attribute() | runtime | instance of object | builtin-class object |
236235
| g_class_init.py:36 | ControlFlowNode for D | runtime | class D | builtin-class type |
237236
| g_class_init.py:36 | ControlFlowNode for self | runtime | self instance of D | class D |
238237
| g_class_init.py:36 | ControlFlowNode for super | runtime | builtin-class super | builtin-class type |
@@ -585,15 +584,13 @@
585584
| l_calls.py:62 | ControlFlowNode for Attribute | import | builtin method get | builtin-class method_descriptor |
586585
| l_calls.py:62 | ControlFlowNode for dict | import | builtin-class dict | builtin-class type |
587586
| l_calls.py:63 | ControlFlowNode for Attribute | import | builtin method get | builtin-class method_descriptor |
588-
| l_calls.py:63 | ControlFlowNode for Attribute() | import | instance of object | builtin-class object |
589587
| l_calls.py:63 | ControlFlowNode for Dict | import | Dict | builtin-class dict |
590588
| l_calls.py:63 | ControlFlowNode for IntegerLiteral | import | int 5 | builtin-class int |
591589
| l_calls.py:63 | ControlFlowNode for Str | import | 'foo' | builtin-class str |
592590
| l_calls.py:63 | ControlFlowNode for dict | import | builtin-class dict | builtin-class type |
593591
| l_calls.py:64 | ControlFlowNode for a | import | builtin method bit_length | builtin-class method_descriptor |
594592
| l_calls.py:64 | ControlFlowNode for b | import | instance of int | builtin-class int |
595593
| l_calls.py:64 | ControlFlowNode for c | import | builtin method get | builtin-class method_descriptor |
596-
| l_calls.py:64 | ControlFlowNode for d | import | instance of object | builtin-class object |
597594
| m_attributes.py:3 | ControlFlowNode for ClassExpr | import | class C | builtin-class type |
598595
| m_attributes.py:3 | ControlFlowNode for object | import | builtin-class object | builtin-class type |
599596
| m_attributes.py:5 | ControlFlowNode for FunctionExpr | import | Function C.__init__ | builtin-class function |
@@ -705,8 +702,6 @@
705702
| q_super.py:3 | ControlFlowNode for FunctionExpr | import | Function Base2.__init__ | builtin-class function |
706703
| q_super.py:4 | ControlFlowNode for Attribute | code/q_super.py:12 from runtime | Method(builtin method __init__, self instance of Derived4) | builtin-class method |
707704
| q_super.py:4 | ControlFlowNode for Attribute | runtime | Method(builtin method __init__, self instance of Base2) | builtin-class method |
708-
| q_super.py:4 | ControlFlowNode for Attribute() | code/q_super.py:12 from runtime | instance of object | builtin-class object |
709-
| q_super.py:4 | ControlFlowNode for Attribute() | runtime | instance of object | builtin-class object |
710705
| q_super.py:4 | ControlFlowNode for Base2 | code/q_super.py:12 from runtime | class Base2 | builtin-class type |
711706
| q_super.py:4 | ControlFlowNode for Base2 | runtime | class Base2 | builtin-class type |
712707
| q_super.py:4 | ControlFlowNode for self | code/q_super.py:12 from runtime | self instance of Derived4 | class Derived4 |
@@ -847,7 +842,6 @@
847842
| q_super.py:75 | ControlFlowNode for Attribute | runtime | Method(builtin method __init__, self instance of M) | builtin-class method |
848843
| q_super.py:75 | ControlFlowNode for s | runtime | super(class M, self instance of M) | builtin-class super |
849844
| q_super.py:76 | ControlFlowNode for i | runtime | Method(builtin method __init__, self instance of M) | builtin-class method |
850-
| q_super.py:76 | ControlFlowNode for i() | runtime | instance of object | builtin-class object |
851845
| r_regressions.py:5 | ControlFlowNode for ClassExpr | import | class Queue | builtin-class type |
852846
| r_regressions.py:5 | ControlFlowNode for object | import | builtin-class object | builtin-class type |
853847
| r_regressions.py:7 | ControlFlowNode for FunctionExpr | import | Function Queue.__init__ | builtin-class function |

0 commit comments

Comments
 (0)