Skip to content

Commit d3163d8

Browse files
committed
Python: Add iterable-unpacking in for test
1 parent e2d3fa7 commit d3163d8

File tree

1 file changed

+9
-0
lines changed
  • python/ql/test/experimental/dataflow/tainttracking/defaultAdditionalTaintStep-py3

1 file changed

+9
-0
lines changed

python/ql/test/experimental/dataflow/tainttracking/defaultAdditionalTaintStep-py3/test_collections.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ def test_access():
1616
tainted_list.copy(), # $ tainted
1717
)
1818

19+
for ((x, y, *z), a, b) in tainted_list:
20+
ensure_tainted(
21+
x, # $ tainted
22+
y, # $ tainted
23+
z, # $ tainted
24+
a, # $ tainted
25+
b, # $ tainted
26+
)
27+
1928

2029
def list_clear():
2130
tainted_string = TAINTED_STRING

0 commit comments

Comments
 (0)