Skip to content

Commit 5dba120

Browse files
marioevzspencer-tb
authored andcommitted
fix(tests): Use pytest.mark.valid_before for EIP-8037
1 parent 013de90 commit 5dba120

10 files changed

Lines changed: 19 additions & 19 deletions

File tree

tests/osaka/eip7825_transaction_gas_limit_cap/test_tx_gas_limit.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def tx_gas_limit_cap_tests(fork: Fork) -> List[ParameterSet]:
9090
@pytest.mark.parametrize_by_fork("tx_gas_limit,error", tx_gas_limit_cap_tests)
9191
@pytest.mark.with_all_tx_types
9292
@pytest.mark.valid_from("Prague")
93-
@pytest.mark.valid_until("EIP8037")
93+
@pytest.mark.valid_before("EIP8037")
9494
def test_transaction_gas_limit_cap(
9595
state_test: StateTestFiller,
9696
pre: Alloc,
@@ -345,7 +345,7 @@ def total_cost_floor_per_token(fork: Fork) -> int:
345345
)
346346
@pytest.mark.parametrize("zero_byte", [True, False])
347347
@pytest.mark.valid_from("Osaka")
348-
@pytest.mark.valid_until("EIP8037")
348+
@pytest.mark.valid_before("EIP8037")
349349
@pytest.mark.eels_base_coverage
350350
def test_tx_gas_limit_cap_full_calldata(
351351
state_test: StateTestFiller,
@@ -480,7 +480,7 @@ def test_tx_gas_limit_cap_contract_creation(
480480
],
481481
)
482482
@pytest.mark.valid_from("Osaka")
483-
@pytest.mark.valid_until("EIP8037")
483+
@pytest.mark.valid_before("EIP8037")
484484
def test_tx_gas_limit_cap_access_list_with_diff_keys(
485485
state_test: StateTestFiller,
486486
exceed_tx_gas_limit: bool,
@@ -567,7 +567,7 @@ def intrinsic_cost_for_num_storage_keys(storage_key_count: int) -> int:
567567
],
568568
)
569569
@pytest.mark.valid_from("Osaka")
570-
@pytest.mark.valid_until("EIP8037")
570+
@pytest.mark.valid_before("EIP8037")
571571
def test_tx_gas_limit_cap_access_list_with_diff_addr(
572572
state_test: StateTestFiller,
573573
pre: Alloc,
@@ -648,7 +648,7 @@ def intrinsic_cost_for_num_accounts(account_count: int) -> int:
648648
],
649649
)
650650
@pytest.mark.valid_from("Osaka")
651-
@pytest.mark.valid_until("EIP8037")
651+
@pytest.mark.valid_before("EIP8037")
652652
def test_tx_gas_limit_cap_authorized_tx(
653653
state_test: StateTestFiller,
654654
pre: Alloc,

tests/prague/eip6110_deposits/test_deposits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@
716716
),
717717
],
718718
id="single_deposit_from_contract_call_depth_high",
719-
marks=pytest.mark.valid_until("EIP8037"),
719+
marks=pytest.mark.valid_before("EIP8037"),
720720
),
721721
pytest.param(
722722
[

tests/prague/eip7623_increase_calldata_cost/test_execution_gas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def to(
7272
True,
7373
[Address(1)],
7474
id="type_4",
75-
marks=pytest.mark.valid_until("EIP8037"),
75+
marks=pytest.mark.valid_before("EIP8037"),
7676
),
7777
],
7878
indirect=["authorization_list"],

tests/prague/eip7623_increase_calldata_cost/test_refunds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def tx_gas_limit(
342342
)
343343
# TODO[EIP-8037]: Authorization state gas split affects
344344
# refund calculations for Amsterdam.
345-
@pytest.mark.valid_until("EIP8037")
345+
@pytest.mark.valid_before("EIP8037")
346346
def test_gas_refunds_from_data_floor(
347347
state_test: StateTestFiller,
348348
pre: Alloc,

tests/prague/eip7623_increase_calldata_cost/test_transaction_validity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def test_transaction_validity_type_0(
159159
# TODO[EIP-8037]: Contract creation state gas
160160
# (G_TRANSACTION_CREATE) split affects intrinsic gas
161161
# calculation for Amsterdam.
162-
@pytest.mark.valid_until("EIP8037")
162+
@pytest.mark.valid_before("EIP8037")
163163
def test_transaction_validity_type_1_type_2(
164164
state_test: StateTestFiller,
165165
pre: Alloc,

tests/prague/eip7702_set_code_tx/test_gas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ def gas_test_parameter_args(
841841
)
842842
)
843843
@pytest.mark.slow()
844-
@pytest.mark.valid_until("EIP8037")
844+
@pytest.mark.valid_before("EIP8037")
845845
def test_gas_cost(
846846
state_test: StateTestFiller,
847847
pre: Alloc,
@@ -1120,7 +1120,7 @@ def test_account_warming(
11201120
# TODO[EIP-8037]: EELS uses PER_EMPTY_ACCOUNT_COST=25,000
11211121
# per auth for intrinsic gas check, but Amsterdam
11221122
# G_AUTHORIZATION=165,990 includes state gas. EELS bug?
1123-
@pytest.mark.valid_until("EIP8037")
1123+
@pytest.mark.valid_before("EIP8037")
11241124
def test_intrinsic_gas_cost(
11251125
state_test: StateTestFiller,
11261126
pre: Alloc,

tests/prague/eip7702_set_code_tx/test_set_code_txs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2945,7 +2945,7 @@ def test_set_code_to_precompile(
29452945

29462946

29472947
@pytest.mark.with_all_precompiles
2948-
@pytest.mark.valid_until("EIP8037")
2948+
@pytest.mark.valid_before("EIP8037")
29492949
def test_set_code_to_precompile_not_enough_gas_for_precompile_execution(
29502950
state_test: StateTestFiller,
29512951
pre: Alloc,

tests/prague/eip7702_set_code_tx/test_set_code_txs_2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
@pytest.mark.valid_from("Prague")
3939
# TODO[EIP-8037]: Amsterdam expected_loop_count needs
4040
# recalculating due to state gas.
41-
@pytest.mark.valid_until("EIP8037")
41+
@pytest.mark.valid_before("EIP8037")
4242
# TODO[EIP-8037]: Fix Storage.KeyValueMismatchError for
4343
# contract_loop expected values.
4444
@pytest.mark.skip(
@@ -694,7 +694,7 @@ class AccessListTo(Enum):
694694
[AccessListTo.POINTER_ADDRESS, AccessListTo.CONTRACT_ADDRESS],
695695
)
696696
@pytest.mark.valid_from("Prague")
697-
@pytest.mark.valid_until("EIP8037")
697+
@pytest.mark.valid_before("EIP8037")
698698
def test_gas_diff_pointer_vs_direct_call(
699699
blockchain_test: BlockchainTestFiller,
700700
pre: Alloc,
@@ -909,7 +909,7 @@ def test_gas_diff_pointer_vs_direct_call(
909909

910910

911911
@pytest.mark.valid_from("Prague")
912-
@pytest.mark.valid_until("EIP8037")
912+
@pytest.mark.valid_before("EIP8037")
913913
def test_pointer_call_followed_by_direct_call(
914914
state_test: StateTestFiller,
915915
pre: Alloc,

tests/shanghai/eip3860_initcode/test_initcode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def post(
404404
# TODO[EIP-8037]: Code deposit and G_CREATE become
405405
# state gas under Amsterdam.
406406
# Gas calculations need updating for two-dimensional gas.
407-
@pytest.mark.valid_until("EIP8037")
407+
@pytest.mark.valid_before("EIP8037")
408408
@pytest.mark.slow()
409409
def test_gas_usage(
410410
self,
@@ -611,7 +611,7 @@ def code_deposit_gas(self, fork: Fork, initcode: Initcode) -> int:
611611
# TODO[EIP-8037]: Code deposit and G_CREATE become
612612
# state gas under Amsterdam.
613613
# Gas calculations need updating for two-dimensional gas.
614-
@pytest.mark.valid_until("EIP8037")
614+
@pytest.mark.valid_before("EIP8037")
615615
@pytest.mark.xdist_group(name="bigmem")
616616
@pytest.mark.slow()
617617
def test_create_opcode_initcode(

tests/tangerine_whistle/eip150_operation_gas_costs/test_eip150_selfdestruct.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ def build_post_state(
329329
[0, 1],
330330
ids=["dead_beneficiary", "alive_beneficiary"],
331331
)
332-
@pytest.mark.valid_until("EIP8037") # TODO[EIP-8037]: Fix for Amsterdam
332+
@pytest.mark.valid_before("EIP8037") # TODO[EIP-8037]: Fix for Amsterdam
333333
def test_selfdestruct_to_account(
334334
pre: Alloc,
335335
blockchain_test: BlockchainTestFiller,
@@ -583,7 +583,7 @@ def test_selfdestruct_state_access_boundary(
583583
],
584584
)
585585
@pytest.mark.valid_from("TangerineWhistle")
586-
@pytest.mark.valid_until("EIP8037") # TODO[EIP-8037]: Fix for Amsterdam
586+
@pytest.mark.valid_before("EIP8037") # TODO[EIP-8037]: Fix for Amsterdam
587587
def test_selfdestruct_to_precompile(
588588
pre: Alloc,
589589
blockchain_test: BlockchainTestFiller,

0 commit comments

Comments
 (0)