From a4f9ed91ca43bc48d8ed034374cf29396ec0cf94 Mon Sep 17 00:00:00 2001 From: Roberto Saltini Date: Wed, 26 Jul 2023 11:10:18 +1000 Subject: [PATCH] Make linter happy --- .../pyspec/eth2spec/test/phase0/fork_choice/test_reorg.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/core/pyspec/eth2spec/test/phase0/fork_choice/test_reorg.py b/tests/core/pyspec/eth2spec/test/phase0/fork_choice/test_reorg.py index 879fbab54..ca9b483f8 100644 --- a/tests/core/pyspec/eth2spec/test/phase0/fork_choice/test_reorg.py +++ b/tests/core/pyspec/eth2spec/test/phase0/fork_choice/test_reorg.py @@ -408,7 +408,7 @@ def _run_include_votes_of_another_empty_chain(spec, state, enough_ffg, is_justif assert state.current_justified_checkpoint.epoch == store.justified_checkpoint.epoch == 3 assert y_voting_source_epoch == 2 assert y_voting_source_epoch != store.justified_checkpoint.epoch - assert not(y_voting_source_epoch + 2 >= spec.compute_epoch_at_slot(spec.get_current_slot(store))) + assert not (y_voting_source_epoch + 2 >= spec.compute_epoch_at_slot(spec.get_current_slot(store))) assert spec.get_head(store) == signed_block_z.message.hash_tree_root() else: if enough_ffg: @@ -437,7 +437,7 @@ def _run_include_votes_of_another_empty_chain(spec, state, enough_ffg, is_justif assert state.current_justified_checkpoint.epoch == store.justified_checkpoint.epoch == 3 assert y_voting_source_epoch == 2 assert y_voting_source_epoch != store.justified_checkpoint.epoch - assert not(y_voting_source_epoch + 2 >= spec.compute_epoch_at_slot(spec.get_current_slot(store))) + assert not (y_voting_source_epoch + 2 >= spec.compute_epoch_at_slot(spec.get_current_slot(store))) assert spec.get_head(store) == signed_block_z.message.hash_tree_root() else: if enough_ffg: @@ -445,7 +445,7 @@ def _run_include_votes_of_another_empty_chain(spec, state, enough_ffg, is_justif assert state.current_justified_checkpoint.epoch == store.justified_checkpoint.epoch == 4 assert y_voting_source_epoch == 3 assert y_voting_source_epoch != store.justified_checkpoint.epoch - assert not(y_voting_source_epoch + 2 >= spec.compute_epoch_at_slot(spec.get_current_slot(store))) + assert not (y_voting_source_epoch + 2 >= spec.compute_epoch_at_slot(spec.get_current_slot(store))) assert spec.get_head(store) == signed_block_z.message.hash_tree_root() else: # y is not filtered out & wins the LMD competition, so y should be the head