Merge pull request #2791 from ralexstokes/clean-up-test-gen

remove unnecessary conditional in ssz generic test gen code
This commit is contained in:
Hsiao-Wei Wang 2022-01-07 13:18:20 +08:00 committed by GitHub
commit fab4cb09b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 14 deletions

View File

@ -104,7 +104,6 @@ def invalid_cases():
RandomizationMode.mode_nil_count,
RandomizationMode.mode_one_count,
RandomizationMode.mode_max_count]:
if len(offsets) != 0:
for offset_index in offsets:
yield f'{name}_{mode.to_name()}_offset_{offset_index}_plus_one', \
invalid_test_case(lambda: mod_offset(