From 7255faf41b0e1aa3dc1bd12a823a98b459a45a70 Mon Sep 17 00:00:00 2001 From: Antonio Sanso Date: Thu, 13 Jan 2022 13:40:48 +0100 Subject: [PATCH] Update ssz_container.py --- tests/generators/ssz_generic/ssz_container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/generators/ssz_generic/ssz_container.py b/tests/generators/ssz_generic/ssz_container.py index b93399522..1b30d687a 100644 --- a/tests/generators/ssz_generic/ssz_container.py +++ b/tests/generators/ssz_generic/ssz_container.py @@ -104,7 +104,7 @@ def invalid_cases(): RandomizationMode.mode_nil_count, RandomizationMode.mode_one_count, RandomizationMode.mode_max_count]: - for offset_index in offsets: + for index, offset_index in enumerate(offsets): yield f'{name}_{mode.to_name()}_offset_{offset_index}_plus_one', \ invalid_test_case(lambda: mod_offset( b=serialize(container_case_fn(rng, mode, typ)),