Skip to content

Commit 7176898

Browse files
committed
Python: Fix library tests
1 parent b3b87c9 commit 7176898

File tree

83 files changed

+80
-25
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+80
-25
lines changed

python/ql/test/library-tests/PointsTo/api/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
from ClassValue cls, string description
45
where

python/ql/test/library-tests/PointsTo/api/Constants.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 string txt, Value val
45
where

python/ql/test/library-tests/PointsTo/api/QualifedNames.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 FunctionValue v, string name
45
where

python/ql/test/library-tests/PointsTo/api/Value.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 Value val, string name
45
where

python/ql/test/library-tests/PointsTo/calls/GetACall.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 call, Value func
45
where call = func.getACall()

python/ql/test/library-tests/PointsTo/calls/getArgumentForCall.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 CallNode call, CallableValue callable, int i
45
select call.getLocation().getStartLine(), call.toString(), callable.toString(), i,

python/ql/test/library-tests/PointsTo/calls/getNamedArgumentForCall.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 CallNode call, CallableValue callable, string name
45
select call.getLocation().getStartLine(), call.toString(), callable.toString(), name,
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 CallableValue callable, int i
45
select callable.toString(), i, callable.getParameter(i).toString()
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 CallableValue callable, string name
45
select callable.toString(), name, callable.getParameterByName(name).toString()

python/ql/test/library-tests/PointsTo/decorators/Values.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.objects.ObjectInternal
2+
private import LegacyPointsTo
43

54
from NameNode f, Context ctx, ObjectInternal v
65
where

0 commit comments

Comments
 (0)