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 d7749909e..98b251add 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 @@ -70,9 +70,9 @@ def _last_slot_in_epoch(spec): def _random_slot_in_epoch(rng): - def f(spec): + def _a_slot_in_epoch(spec): return rng.randrange(1, spec.SLOTS_PER_EPOCH - 2) - return f + return _a_slot_in_epoch def _penultimate_slot_in_epoch(spec):