mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
python: add test to validation (and fix it)
This commit is contained in:
@@ -67,6 +67,7 @@ if __name__ == "__main__":
|
||||
check_tests_valid("variable-capture.in")
|
||||
check_tests_valid("variable-capture.nonlocal")
|
||||
check_tests_valid("variable-capture.dict")
|
||||
check_tests_valid("variable-capture.collections")
|
||||
check_tests_valid("module-initialization.multiphase")
|
||||
check_tests_valid("fieldflow.test")
|
||||
check_tests_valid_after_version("match.test", (3, 10))
|
||||
|
||||
@@ -31,7 +31,7 @@ def SINK_F(x):
|
||||
print("OK")
|
||||
|
||||
l = [NONSOURCE]
|
||||
SINK_F(l_mod[0])
|
||||
SINK_F(l[0])
|
||||
|
||||
l_mod = [SOURCE for x in l]
|
||||
SINK(l_mod[0]) #$ captured
|
||||
|
||||
Reference in New Issue
Block a user