From b17ada2d67ba9c944c75ebc9c9ff52e796a6c8f3 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Sat, 21 Aug 2021 18:24:26 -0700 Subject: [PATCH] only target phase 0 and altair for now --- .../pyspec/eth2spec/test/phase0/sanity/test_blocks_random.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 98b251add..05ae545b8 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 @@ -1,8 +1,9 @@ import itertools import warnings from random import Random +from tests.core.pyspec.eth2spec.test.helpers.constants import PHASE0, ALTAIR from typing import Callable -from tests.core.pyspec.eth2spec.test.context import misc_balances_in_default_range, zero_activation_threshold +from tests.core.pyspec.eth2spec.test.context import misc_balances_in_default_range, with_phases, zero_activation_threshold from eth2spec.test.helpers.multi_operations import ( build_random_block_from_state, ) @@ -315,7 +316,7 @@ def _iter_temporal(spec, callable_or_int): @pytest_generate_tests_adapter -@with_all_phases +@with_phases([PHASE0, ALTAIR]) @with_custom_state(balances_fn=misc_balances_in_default_range, threshold_fn=zero_activation_threshold) @spec_test @single_phase