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

@@ -1,6 +1,7 @@
import python
import Loop
import semmle.python.dataflow.TaintTracking
private import LegacyPointsTo
/** A marker for "uninitialized". */
class Uninitialized extends TaintKind {

View File

@@ -13,6 +13,7 @@
import python
import Variables.MonkeyPatched
private import LegacyPointsTo
/* Local variable part */
predicate initialized_as_local(PlaceHolder use) {

View File

@@ -14,6 +14,7 @@
import python
import Definition
private import LegacyPointsTo
predicate unused_parameter(FunctionValue f, LocalVariable v) {
v.isParameter() and