Remove pytest import

This commit is contained in:
Justin Traglia 2022-05-10 11:00:16 -05:00
parent d1f0187076
commit 02090d94ab
1 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,3 @@
import pytest
from eth2spec.test.helpers.deposits import mock_deposit
from eth2spec.test.helpers.state import next_epoch, next_slots
from eth2spec.test.helpers.constants import MINIMAL
@ -365,6 +363,10 @@ def test_invalid_large_withdrawable_epoch(spec, state):
state.validators[0].exit_epoch = spec.FAR_FUTURE_EPOCH - 1
state.validators[1].effective_balance = spec.config.EJECTION_BALANCE
with pytest.raises(ValueError):
try:
yield from run_process_registry_updates(spec, state)
except ValueError:
yield 'post', None
return
raise AssertionError('expected ValueError')