Python: Add iterable-unpacking in for test

This commit is contained in:
Rasmus Wriedt Larsen
2021-07-22 11:31:28 +02:00
parent e2d3fa7093
commit d3163d8a76

View File

@@ -16,6 +16,15 @@ def test_access():
tainted_list.copy(), # $ tainted
)
for ((x, y, *z), a, b) in tainted_list:
ensure_tainted(
x, # $ tainted
y, # $ tainted
z, # $ tainted
a, # $ tainted
b, # $ tainted
)
def list_clear():
tainted_string = TAINTED_STRING