File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
python/ql/test/library-tests/PointsTo/regressions/wrong/classmethod Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 3
3
| test.py:17:15:17:17 | ControlFlowNode for cls | self instance of Foo |
4
4
| test.py:22:15:22:17 | ControlFlowNode for cls | class Foo |
5
5
| test.py:22:15:22:17 | ControlFlowNode for cls | self instance of Foo |
6
+ | test.py:27:15:27:17 | ControlFlowNode for cls | class Foo |
7
+ | test.py:27:15:27:17 | ControlFlowNode for cls | self instance of Foo |
Original file line number Diff line number Diff line change @@ -21,9 +21,15 @@ def problem_through_instance(cls):
21
21
def problem_through_class (cls ):
22
22
check (cls ) # same as above
23
23
24
+ @classmethod
25
+ @some_decorator
26
+ def also_problem (cls ):
27
+ check (cls ) # same as above
28
+
24
29
# We need to call the methods before our analysis works
25
30
f1 = Foo ()
26
31
f1 .no_problem ()
27
32
f1 .problem_through_instance ()
33
+ f1 .also_problem ()
28
34
29
35
Foo .problem_through_class ()
You can’t perform that action at this time.
0 commit comments