Skip to content

Commit cfd79e2

Browse files
committed
Py: Put in commented-out test and update expected
1 parent e982e14 commit cfd79e2

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

python/ql/test/3/library-tests/PointsTo/typehints/Values.expected

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,10 @@
1919
| test.py:10:6:10:18 | test.py:10 | ControlFlowNode for Subscript | import | file://:0:0:0:0 | _Optional()[builtin-class int] |
2020
| test.py:10:15:10:17 | test.py:10 | ControlFlowNode for int | import | file://:0:0:0:0 | builtin-class int |
2121
| test.py:10:20:10:22 | test.py:10 | ControlFlowNode for int | import | file://:0:0:0:0 | builtin-class int |
22+
| test.py:12:1:12:12 | test.py:12 | ControlFlowNode for ClassExpr | import | test.py:12:1:12:12 | class baz |
23+
| test.py:14:7:14:10 | test.py:14 | ControlFlowNode for True | import | file://:0:0:0:0 | bool True |
24+
| test.py:15:11:15:13 | test.py:15 | ControlFlowNode for baz | import | file://:0:0:0:0 | class baz[class baz] |
25+
| test.py:15:11:15:13 | test.py:15 | ControlFlowNode for baz | import | test.py:12:1:12:12 | class baz |
26+
| test.py:15:11:15:18 | test.py:15 | ControlFlowNode for Subscript | import | file://:0:0:0:0 | class baz[class baz] |
27+
| test.py:15:15:15:17 | test.py:15 | ControlFlowNode for baz | import | file://:0:0:0:0 | class baz[class baz] |
28+
| test.py:15:15:15:17 | test.py:15 | ControlFlowNode for baz | import | test.py:12:1:12:12 | class baz |

python/ql/test/3/library-tests/PointsTo/typehints/test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ def bar(s:set)->Set:
88

99
t1 = Optional[Optional[int]]
1010
t2 = Optional[int][int]
11+
12+
class baz():
13+
pass
14+
while True:
15+
baz = baz[baz]

0 commit comments

Comments
 (0)