Add couple of cosmetic fixes

This commit is contained in:
Mikhail Kalinin 2021-06-22 14:26:38 +06:00
parent ac19aa3e2d
commit e5c01061af
2 changed files with 2 additions and 3 deletions

View File

@ -51,7 +51,7 @@ def build_state_with_incomplete_transition(spec, state):
def build_state_with_complete_transition(spec, state): def build_state_with_complete_transition(spec, state):
pre_state_payload = build_empty_execution_payload(spec, state, spec.Bytes32()) pre_state_payload = build_empty_execution_payload(spec, state)
payload_header = get_execution_payload_header(spec, pre_state_payload) payload_header = get_execution_payload_header(spec, pre_state_payload)
return build_state_with_execution_payload_header(spec, state, payload_header) return build_state_with_execution_payload_header(spec, state, payload_header)

View File

@ -32,8 +32,7 @@ def run_execution_payload_processing(spec, state, execution_payload, valid=True,
return execution_valid return execution_valid
if not valid: if not valid:
expect_assertion_error( expect_assertion_error(lambda: spec.process_execution_payload(state, execution_payload, TestEngine()))
lambda: spec.process_execution_payload(state, execution_payload, TestEngine()))
yield 'post', None yield 'post', None
return return