Skip to content

Commit 552637a

Browse files
committed
Python: dataflow regression tests: fix flow_in_iteration
1 parent 4977790 commit 552637a

File tree

1 file changed

+2
-2
lines changed
  • python/ql/test/experimental/dataflow/regression

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ def flow_through_type_test_if_no_class():
201201
def flow_in_iteration():
202202
t = ITERABLE_SOURCE # Seems to not be sunk anywhere
203203
for i in t:
204-
i
205-
return i
204+
SINK(i)
205+
SINK(i)
206206

207207
def flow_in_generator():
208208
seq = [SOURCE]

0 commit comments

Comments
 (0)