From 02090d94ab8c8eeba1d4b30d2fac440d9f378ca1 Mon Sep 17 00:00:00 2001 From: Justin Traglia Date: Tue, 10 May 2022 11:00:16 -0500 Subject: [PATCH] Remove pytest import --- .../epoch_processing/test_process_registry_updates.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/core/pyspec/eth2spec/test/phase0/epoch_processing/test_process_registry_updates.py b/tests/core/pyspec/eth2spec/test/phase0/epoch_processing/test_process_registry_updates.py index 2aff866c2..9c6461fb4 100644 --- a/tests/core/pyspec/eth2spec/test/phase0/epoch_processing/test_process_registry_updates.py +++ b/tests/core/pyspec/eth2spec/test/phase0/epoch_processing/test_process_registry_updates.py @@ -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) - yield 'post', None + except ValueError: + yield 'post', None + return + + raise AssertionError('expected ValueError')