Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8b5d6ae

Browse files
committed
Python: Modernise zope web tests
1 parent e257ba4 commit 8b5d6ae

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • python/ql/test/library-tests/web/zope
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import python
22
import semmle.python.TestUtils
33

4-
from ControlFlowNode f, Object o, ControlFlowNode x
4+
from ControlFlowNode f, Value v, ControlFlowNode x
55
where
66
exists(ExprStmt s | s.getValue().getAFlowNode() = f) and
7-
f.refersTo(o, x) and
7+
f.pointsTo(v, x) and
88
f.getLocation().getFile().getBaseName() = "test.py"
9-
select f.getLocation().getStartLine(), f.toString(), o.toString(),
9+
select f.getLocation().getStartLine(), f.toString(), v.toString(),
1010
remove_library_prefix(x.getLocation())

0 commit comments

Comments
 (0)