Skip to content

Commit af644a0

Browse files
committed
Python: Decrease import depth in regex tests
These were increased because of the indirection needed to get to the regex flags, but as we no longer rely on this, we can make do with a smaller import depth.
1 parent e77c105 commit af644a0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

python/ql/test/library-tests/regex/Qualified.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ import python
22
import semmle.python.regex
33

44
from Regex r, int start, int end, boolean maybe_empty
5-
where
6-
r.qualifiedItem(start, end, maybe_empty) and r.getLocation().getFile().getShortName() = "test.py"
5+
where r.qualifiedItem(start, end, maybe_empty)
76
select r.getText(), start, end, maybe_empty
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
semmle-extractor-options: --max-import-depth=3
1+
semmle-extractor-options: --max-import-depth=1

0 commit comments

Comments
 (0)