mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 04:45:01 -05:00
Tests run with both spec versions
This commit is contained in:
@@ -110,4 +110,13 @@ def with_phase1(fn):
|
||||
return entry
|
||||
|
||||
|
||||
with_all_phases = with_phase0
|
||||
def with_all_phases(fn):
|
||||
"""
|
||||
Decorator to run everything with all availible spec phases
|
||||
"""
|
||||
def entry(*args, **kw):
|
||||
kw['spec'] = spec_phase0
|
||||
fn(*args, **kw)
|
||||
kw['spec'] = spec_phase1
|
||||
return fn(*args, **kw)
|
||||
return entry
|
||||
|
||||
Reference in New Issue
Block a user