From bf86a716ee6b4ce1d01011dbafad943f0b2083dd Mon Sep 17 00:00:00 2001 From: protolambda Date: Sun, 5 Jan 2020 23:51:02 +0100 Subject: [PATCH] force-add in phase0 in test context, since state creation is not independent yet --- test_libs/pyspec/eth2spec/test/context.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test_libs/pyspec/eth2spec/test/context.py b/test_libs/pyspec/eth2spec/test/context.py index 650f1ec81..149836787 100644 --- a/test_libs/pyspec/eth2spec/test/context.py +++ b/test_libs/pyspec/eth2spec/test/context.py @@ -236,6 +236,10 @@ def with_phases(phases, other_phases=None): if other_phases is not None: available_phases += set(other_phases) + # TODO: test state is dependent on phase0 but is immediately transitioned to phase1. + # A new state-creation helper for phase 1 may be in place, and then phase1+ tests can run without phase0 + available_phases.add('phase0') + phase_dir = {} if 'phase0' in available_phases: phase_dir['phase0'] = spec_phase0