Skip to content

Commit bb78c2a

Browse files
committed
Python: update test expectations
1 parent e91efaa commit bb78c2a

File tree

28 files changed

+25
-71
lines changed

28 files changed

+25
-71
lines changed

python/ql/test/3/library-tests/PointsTo/class_properties/ClassValues.expected

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
| mapping | builtin-class collections.OrderedDict |
2-
| mapping | builtin-class collections.defaultdict |
31
| mapping | builtin-class dict |
42
| mapping | class MyDictSubclass |
53
| mapping | class MyMappingABC |
6-
| mapping | class OrderedDict |
74
| neither sequence nor mapping | builtin-class set |
85
| sequence | builtin-class bytes |
96
| sequence | builtin-class list |

python/ql/test/3/library-tests/PointsTo/imports/Runtime.expected

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,10 @@
4444
| test.py | 15 | ControlFlowNode for moduleX | Module package.moduleX | Entry node for Module package.moduleX |
4545
| test.py | 16 | ControlFlowNode for Attribute | class Y | ControlFlowNode for ClassExpr |
4646
| test.py | 16 | ControlFlowNode for moduleX | Module package.moduleX | Entry node for Module package.moduleX |
47-
| test.py | 19 | ControlFlowNode for ImportExpr | Module tty | ControlFlowNode for ImportExpr |
48-
| test.py | 19 | ControlFlowNode for tty | Module tty | ControlFlowNode for ImportExpr |
4947
| test.py | 22 | ControlFlowNode for Attribute | Builtin-function exc_info | ControlFlowNode for from sys import * |
5048
| test.py | 22 | ControlFlowNode for x | Module package.x | Entry node for Module package.x |
5149
| test.py | 24 | ControlFlowNode for IntegerLiteral | int 0 | ControlFlowNode for IntegerLiteral |
5250
| test.py | 24 | ControlFlowNode for argv | int 0 | ControlFlowNode for IntegerLiteral |
5351
| test.py | 27 | ControlFlowNode for ImportExpr | Module sys | ControlFlowNode for ImportExpr |
5452
| test.py | 31 | ControlFlowNode for argv | list object | ControlFlowNode for from sys import * |
55-
| test.py | 33 | ControlFlowNode for ImportExpr | Module socket | ControlFlowNode for ImportExpr |
56-
| test.py | 34 | ControlFlowNode for timeout | builtin-class TimeoutError | ControlFlowNode for from _socket import * |
5753
| x.py | 2 | ControlFlowNode for ImportExpr | Module sys | ControlFlowNode for ImportExpr |

python/ql/test/3/library-tests/PointsTo/imports/RuntimeWithType.expected

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,10 @@
4444
| test.py | 15 | ControlFlowNode for moduleX | Module package.moduleX | builtin-class module | Entry node for Module package.moduleX |
4545
| test.py | 16 | ControlFlowNode for Attribute | class Y | builtin-class type | ControlFlowNode for ClassExpr |
4646
| test.py | 16 | ControlFlowNode for moduleX | Module package.moduleX | builtin-class module | Entry node for Module package.moduleX |
47-
| test.py | 19 | ControlFlowNode for ImportExpr | Module tty | builtin-class module | ControlFlowNode for ImportExpr |
48-
| test.py | 19 | ControlFlowNode for tty | Module tty | builtin-class module | ControlFlowNode for ImportExpr |
4947
| test.py | 22 | ControlFlowNode for Attribute | Builtin-function exc_info | builtin-class builtin_function_or_method | ControlFlowNode for from sys import * |
5048
| test.py | 22 | ControlFlowNode for x | Module package.x | builtin-class module | Entry node for Module package.x |
5149
| test.py | 24 | ControlFlowNode for IntegerLiteral | int 0 | builtin-class int | ControlFlowNode for IntegerLiteral |
5250
| test.py | 24 | ControlFlowNode for argv | int 0 | builtin-class int | ControlFlowNode for IntegerLiteral |
5351
| test.py | 27 | ControlFlowNode for ImportExpr | Module sys | builtin-class module | ControlFlowNode for ImportExpr |
5452
| test.py | 31 | ControlFlowNode for argv | list object | builtin-class list | ControlFlowNode for from sys import * |
55-
| test.py | 33 | ControlFlowNode for ImportExpr | Module socket | builtin-class module | ControlFlowNode for ImportExpr |
56-
| test.py | 34 | ControlFlowNode for timeout | builtin-class TimeoutError | builtin-class type | ControlFlowNode for from _socket import * |
5753
| x.py | 2 | ControlFlowNode for ImportExpr | Module sys | builtin-class module | ControlFlowNode for ImportExpr |
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
| mwe_failure.py:7:1:7:23 | class MyTest | <MISSING BASE TYPE> |
2-
| mwe_failure_2.py:7:1:7:23 | class MyTest | <MISSING BASE TYPE> |
1+
| mwe_failure.py:7:1:7:23 | class MyTest | class TestCase |
2+
| mwe_failure_2.py:7:1:7:23 | class MyTest | class TestCase |
33
| mwe_success.py:7:1:7:23 | class MyTest | class TestCase |

python/ql/test/3/library-tests/modules/general/moduleobject_test.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
| Module package.assistant | e | Wrong() |
3838
| Module package.assistant | f | int 1 |
3939
| Module package.helper | __name__ | str u'package.helper' |
40-
| Module package.helper | absolute_import | _Feature() |
4140
| Module package.helper | assistant | Module package.assistant |
4241
| Module package.helper | d | int 4 |
4342
| Module package.helper | e | int 5 |

python/ql/test/3/library-tests/six/pointsto.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
| six | Package six |
22
| six.moves | Package six.moves |
3-
| six.moves.http_client | Module http.client |
4-
| six.moves.http_client.HTTPConnection | class HTTPConnection |
3+
| six.moves.http_client | Missing module http.client |
4+
| six.moves.http_client.HTTPConnection | Missing module attribute http.client.HTTPConnection |
55
| six.moves.range | builtin-class range |
66
| six.moves.urllib | Package six.moves.urllib |
77
| six.moves.urllib.parse | Module six.moves.urllib_parse |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
| 51 |
1+
| 11 |
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
| UndefinedExport.py:3:18:3:20 | StringLiteral | The name 'y' is exported by __all__ but is not defined. |
22
| UndefinedExport.py:3:23:3:25 | StringLiteral | The name 'z' is exported by __all__ but is not defined. |
33
| UndefinedExport.py:3:28:3:35 | StringLiteral | The name 'module' is exported by __all__ but is not defined. |
4+
| enum_convert.py:8:13:8:19 | StringLiteral | The name 'Maybe' is exported by __all__ but is not defined. |
5+
| enum_convert.py:8:22:8:32 | StringLiteral | The name 'Maybe_not' is exported by __all__ but is not defined. |
46
| package/__init__.py:1:23:1:34 | StringLiteral | The name 'not_exists' is exported by __all__ but is not defined. |

python/ql/test/extractor-tests/flags/Flags.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
| options.all | False |
22
| options.colorize | True |
33
| options.context_cost | 11 |
4-
| options.extract_stdlib | True |
4+
| options.extract_stdlib | False |
55
| options.guess | False |
66
| options.help | False |
77
| options.ignore_missing_modules | False |

python/ql/test/library-tests/PointsTo/decorators/Test.expected

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
| 1 | ControlFlowNode for functools | Module functools | test.py:1 |
21
| 3 | ControlFlowNode for annotate | Function annotate | test.py:3 |
32
| 4 | ControlFlowNode for inner | Function inner | test.py:4 |
43
| 5 | ControlFlowNode for func | Function func1 | test.py:23 |
@@ -11,7 +10,6 @@
1110
| 13 | ControlFlowNode for wrapper | Function wrapper | test.py:10 |
1211
| 15 | ControlFlowNode for wraps2 | Function wraps2 | test.py:15 |
1312
| 16 | ControlFlowNode for func | Function func3 | test.py:31 |
14-
| 16 | ControlFlowNode for functools | Module functools | test.py:1 |
1513
| 17 | ControlFlowNode for args | args | test.py:17 |
1614
| 17 | ControlFlowNode for wrapper | Attribute()() | test.py:16 |
1715
| 18 | ControlFlowNode for args | args | test.py:17 |

0 commit comments

Comments
 (0)