Skip to content

Commit 6b3d9be

Browse files
committed
test(model): Bind the discarded subscript so CodeQL sees an effect
Signed-off-by: David Leong <leongdl@amazon.com>
1 parent 6bb9e07 commit 6b3d9be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/openjd/model_v1/test_step_param_space_iter.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ def test_a_contiguous_space_refuses_indexing_with_or_without_the_override(self)
750750
step=self._step(self._STATIC), chunks_task_count_override=override
751751
)
752752
with pytest.raises(IndexError) as excinfo:
753-
it[0]
753+
_ = it[0]
754754
assert str(excinfo.value) == "index out of range"
755755

756756
def test_an_intermediate_override_regroups_the_chunks(self) -> None:

0 commit comments

Comments
 (0)