From ce471b702e57114e3c66a8cec13f8f14b627ca46 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Sun, 22 Aug 2021 10:54:00 -0700 Subject: [PATCH] code org --- .../pyspec/eth2spec/test/phase0/sanity/test_blocks_random.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/core/pyspec/eth2spec/test/phase0/sanity/test_blocks_random.py b/tests/core/pyspec/eth2spec/test/phase0/sanity/test_blocks_random.py index c379d5815..93f31a4da 100644 --- a/tests/core/pyspec/eth2spec/test/phase0/sanity/test_blocks_random.py +++ b/tests/core/pyspec/eth2spec/test/phase0/sanity/test_blocks_random.py @@ -160,6 +160,8 @@ def _transition_to_leaking(): } +_transition_without_leak = _with_validation(_no_op_transition, _validate_is_not_leaking) + ## block transitions def _transition_with_random_block(epochs=None, slots=None): @@ -300,7 +302,6 @@ def _generate_randomized_scenarios(): # and preface each block transition with the possible leak transitions # (... either no leak or transition to a leak before applying the block transition) - _transition_without_leak = _with_validation(_no_op_transition, _validate_is_not_leaking) leak_transitions = ( _transition_without_leak, _transition_to_leaking,