python: add test to validation (and fix it)

This commit is contained in:
Rasmus Lerchedahl Petersen
2023-03-20 15:07:46 +01:00
parent 17c9ba9872
commit 6a5db750c4
2 changed files with 2 additions and 1 deletions

View File

@@ -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))

View File

@@ -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