Skip to content

Commit 05a1386

Browse files
committed
Python: Fix crashing test
1 parent 7f1affa commit 05a1386

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • python/ql/test/experimental/dataflow/coverage

python/ql/test/experimental/dataflow/coverage/test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,8 +672,7 @@ def test_iterable_star_unpacking_in_for_2():
672672
tl = [(SOURCE, NONSOURCE), (SOURCE, NONSOURCE)]
673673
for x,*y,z in tl:
674674
SINK(x) #$ flow="SOURCE, l:-2 -> x"
675-
SINK_F(y)
676-
SINK_F(y[0])
675+
SINK_F(y) # The list itself is not tainted (and is here empty)
677676
SINK_F(z)
678677

679678

0 commit comments

Comments
 (0)