Skip to content

Commit 85029bd

Browse files
committed
Python: Fix Python 2 tests
1 parent 5b63b49 commit 85029bd

File tree

25 files changed

+25
-2
lines changed

25 files changed

+25
-2
lines changed

python/ql/test/2/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. */
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
where exists(theSysModuleObject())
45
select 1

python/ql/test/2/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/2/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/2/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/2/library-tests/PointsTo/import_time/Pruned.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import python
2-
import semmle.python.pointsto.PointsTo
3-
import semmle.python.pointsto.PointsToContext
2+
private import LegacyPointsTo
43

54
from ControlFlowNode f, Location l, Context c
65
where

python/ql/test/2/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/2/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

python/ql/test/2/library-tests/classes/attr/class_has_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
1011
where

0 commit comments

Comments
 (0)