Skip to content

Commit 8b9fa61

Browse files
authored
fix(tests): collect issue in test_p256verify_before_fork.py (#2123)
1 parent 5f62058 commit 8b9fa61

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

tests/osaka/eip7951_p256verify_precompiles/test_p256verify_before_fork.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66

77
import pytest
88

9-
from ethereum_test_tools import Alloc, Environment, StateTestFiller, Transaction
9+
from ethereum_test_tools import Alloc, Block, BlockchainTestFiller, Transaction
1010

1111
from .spec import Spec, ref_spec_7951
1212

1313
REFERENCE_SPEC_GIT_PATH = ref_spec_7951.git_path
1414
REFERENCE_SPEC_VERSION = ref_spec_7951.version
1515

16-
pytestmark = pytest.mark.valid_at_transition_to("Osaka", subsequent_forks=True)
16+
pytestmark = pytest.mark.valid_at_transition_to("Osaka")
1717

1818

1919
@pytest.mark.parametrize(
@@ -26,10 +26,12 @@
2626
),
2727
],
2828
)
29-
@pytest.mark.parametrize("expected_output,call_succeeds", [pytest.param(b"", True, id="")])
29+
@pytest.mark.parametrize(
30+
"expected_output,call_succeeds", [pytest.param(b"", True, id=pytest.HIDDEN_PARAM)]
31+
)
3032
@pytest.mark.eip_checklist("precompile/test/fork_transition/before/invalid_input")
3133
def test_precompile_before_fork(
32-
state_test: StateTestFiller,
34+
blockchain_test: BlockchainTestFiller,
3335
pre: Alloc,
3436
post: dict,
3537
tx: Transaction,
@@ -39,9 +41,8 @@ def test_precompile_before_fork(
3941
4042
The call must succeed but the output must be empty.
4143
"""
42-
state_test(
43-
env=Environment(),
44+
blockchain_test(
4445
pre=pre,
45-
tx=tx,
46+
blocks=[Block(txs=[tx])],
4647
post=post,
4748
)

0 commit comments

Comments
 (0)