Python: Fix query tests

Mostly just adding `private import LegacyPointsTo`. Sometimes getting
rid of other imports that are superceded by that module.
This commit is contained in:
Taus
2025-10-30 23:06:26 +00:00
parent 2732a652ab
commit 5b63b4957c
52 changed files with 49 additions and 16 deletions

View File

@@ -4,8 +4,7 @@
*/
import python
import semmle.python.pointsto.PointsTo
import semmle.python.pointsto.PointsToContext
private import LegacyPointsTo
from int total_facts, int total_size, int depth, float efficiency
where

View File

@@ -4,8 +4,7 @@
*/
import python
import semmle.python.pointsto.PointsTo
import semmle.python.pointsto.PointsToContext
private import LegacyPointsTo
from int total_facts, int total_size, int depth, float efficiency
where

View File

@@ -4,8 +4,7 @@
*/
import python
import semmle.python.pointsto.PointsTo
import semmle.python.pointsto.PointsToContext
private import LegacyPointsTo
from int total_facts, int total_size, int depth, float efficiency
where

View File

@@ -4,8 +4,7 @@
*/
import python
import semmle.python.pointsto.PointsTo
import semmle.python.pointsto.PointsToContext
private import LegacyPointsTo
int depth(ControlFlowNode f, Object value, ClassObject cls) {
exists(PointsToContext ctx |

View File

@@ -3,7 +3,7 @@
*/
import python
import semmle.python.pointsto.PointsTo
private import LegacyPointsTo
private newtype TSymbol =
TModule(Module m) or

View File

@@ -1,5 +1,5 @@
import python
import semmle.python.pointsto.PointsTo
private import LegacyPointsTo
from ClassValue cls, string reason
where Types::failedInference(cls, reason)

View File

@@ -8,6 +8,7 @@
*/
import python
private import LegacyPointsTo
from Class cls, string reason
where exists(ClassObject c | c.getPyClass() = cls | c.failedInference(reason))