From faf1ba1f4f3a735a3bc20edcf1a15a7f99b3bb95 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Thu, 1 Jul 2021 17:29:09 -0700 Subject: [PATCH] clean up test this test does not need to collect the intermediate blocks it produces --- .../altair/block_processing/test_process_sync_aggregate.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/core/pyspec/eth2spec/test/altair/block_processing/test_process_sync_aggregate.py b/tests/core/pyspec/eth2spec/test/altair/block_processing/test_process_sync_aggregate.py index 7e607afcf..e765658b3 100644 --- a/tests/core/pyspec/eth2spec/test/altair/block_processing/test_process_sync_aggregate.py +++ b/tests/core/pyspec/eth2spec/test/altair/block_processing/test_process_sync_aggregate.py @@ -276,7 +276,6 @@ def test_sync_committee_rewards_empty_participants(spec, state): def test_invalid_signature_past_block(spec, state): committee_indices = compute_committee_indices(spec, state, state.current_sync_committee) - blocks = [] for _ in range(2): # NOTE: need to transition twice to move beyond the degenerate case at genesis block = build_empty_block_for_next_slot(spec, state) @@ -291,8 +290,7 @@ def test_invalid_signature_past_block(spec, state): ) ) - signed_block = state_transition_and_sign_block(spec, state, block) - blocks.append(signed_block) + state_transition_and_sign_block(spec, state, block) invalid_block = build_empty_block_for_next_slot(spec, state) # Invalid signature from a slot other than the previous