Skip to content

Commit 665104e

Browse files
committed
Python: Fix Python 3 tests
1 parent 85029bd commit 665104e

File tree

27 files changed

+27
-1
lines changed

27 files changed

+27
-1
lines changed

python/ql/test/3/extractor-tests/import_depth/test.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import python
2+
private import LegacyPointsTo
23

34
from ModuleObject m
45
/* Exclude the builtins module as it has a different name under 2 and 3. */

python/ql/test/3/library-tests/ControlFlow/Exceptions/Handles.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import python
2+
private import LegacyPointsTo
23

34
from ExceptFlowNode ex, Value val
45
where ex.handledException(val, _, _)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import python
2+
private import LegacyPointsTo
23

34
from RaisingNode r
45
select r.getLocation().getStartLine(), r.toString(), r.getARaisedType().toString()

python/ql/test/3/library-tests/ControlFlow/Exceptions/Likely.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import python
2+
private import LegacyPointsTo
23

34
from ControlFlowNode r, ControlFlowNode s
45
where

python/ql/test/3/library-tests/ControlFlow/Exceptions/Unknown.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import python
2+
private import LegacyPointsTo
23

34
from RaisingNode r
45
where r.raisesUnknownType()

python/ql/test/3/library-tests/PointsTo/consts/BooleanConstants.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import python
2-
import semmle.python.pointsto.PointsTo
2+
private import LegacyPointsTo
33

44
from ControlFlowNode f, Context c, boolean b
55
where

python/ql/test/3/library-tests/PointsTo/inheritance/Calls.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import python
2+
private import LegacyPointsTo
23

34
from Call c, FunctionObject f
45
where f.getACall().getNode() = c

python/ql/test/3/library-tests/PointsTo/metaclass/test.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import python
2+
private import LegacyPointsTo
23

34
from ClassObject cls
45
where not cls.isC()

python/ql/test/3/library-tests/PointsTo/regressions/subprocess-assert/ClassValue.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import python
2+
private import LegacyPointsTo
23

34
// as used in semmle.python.filters.Tests
45
from ClassValue c, string base

python/ql/test/3/library-tests/classes/attr/class_attr.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
import python
8+
private import LegacyPointsTo
89

910
from ClassObject cls, int line, string name, Object obj
1011
where

0 commit comments

Comments
 (0)