mirror of
https://github.com/github/codeql.git
synced 2026-05-03 20:58:03 +02:00
Python: Add copy of internal Python 3 tests
Again, mostly extractor tests, and a single library test.
This commit is contained in:
8
python/ql/test/3/extractor-tests/fstrings3.8/FString.ql
Normal file
8
python/ql/test/3/extractor-tests/fstrings3.8/FString.ql
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
import python
|
||||
|
||||
from Fstring str, int n, Expr e
|
||||
where e = str.getValue(n) and
|
||||
not exists(FormattedValue v | v.getFormatSpec() = str)
|
||||
select str.getLocation().getStartLine(), str.toString(), n, e.toString()
|
||||
|
||||
Reference in New Issue
Block a user