Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def precompile_addresses_in_predecessor_successor(
)
@EIPChecklist.Precompile.Test.ForkTransition.Before.Cold(eip=[7951])
@EIPChecklist.Precompile.Test.ForkTransition.After.Warm(eip=[7951])
@pytest.mark.slow()
def test_precompile_warming(
blockchain_test: BlockchainTestFiller,
fork: Fork,
Expand Down
1 change: 1 addition & 0 deletions tests/berlin/eip2930_access_list/test_tx_intrinsic_gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
],
)
@pytest.mark.with_all_tx_types(selector=lambda tx_type: tx_type in [1, 2])
@pytest.mark.slow()
def test_tx_intrinsic_gas(
state_test: StateTestFiller,
tx_type: int,
Expand Down
2 changes: 2 additions & 0 deletions tests/cancun/eip4844_blobs/test_blob_txs.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,7 @@ def test_invalid_block_blob_count(
@pytest.mark.parametrize("tx_error", [TransactionException.INSUFFICIENT_ACCOUNT_FUNDS], ids=[""])
@pytest.mark.exception_test
@pytest.mark.valid_from("Cancun")
@pytest.mark.slow()
def test_insufficient_balance_blob_tx(
state_test: StateTestFiller,
state_env: Environment,
Expand Down Expand Up @@ -1405,6 +1406,7 @@ def test_blob_tx_attribute_gasprice_opcode(
)
@pytest.mark.exception_test
@pytest.mark.valid_at_transition_to("Cancun")
@pytest.mark.slow()
def test_blob_type_tx_pre_fork(
state_test: StateTestFiller,
pre: Alloc,
Expand Down
3 changes: 3 additions & 0 deletions tests/cancun/eip4844_blobs/test_excess_blob_gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ def all_invalid_blob_gas_used_combinations(fork: Fork) -> Iterator[Tuple[int, in
)
@pytest.mark.parametrize("parent_blobs", [0])
@pytest.mark.exception_test
@pytest.mark.slow()
def test_invalid_blob_gas_used_in_header(
blockchain_test: BlockchainTestFiller,
env: Environment,
Expand Down Expand Up @@ -759,6 +760,7 @@ def test_invalid_excess_blob_gas_change(
lambda fork: range(fork.target_blobs_per_block()),
)
@pytest.mark.exception_test
@pytest.mark.slow()
def test_invalid_negative_excess_blob_gas(
blockchain_test: BlockchainTestFiller,
env: Environment,
Expand Down Expand Up @@ -809,6 +811,7 @@ def test_invalid_negative_excess_blob_gas(
lambda fork: [fork.target_blobs_per_block() + 1],
)
@pytest.mark.exception_test
@pytest.mark.slow()
def test_invalid_non_multiple_excess_blob_gas(
blockchain_test: BlockchainTestFiller,
env: Environment,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ def all_external_vectors() -> List:
)
@pytest.mark.parametrize("versioned_hash", [None])
@pytest.mark.valid_from("Cancun")
@pytest.mark.slow()
def test_external_vectors(
state_test: StateTestFiller,
pre: Alloc,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
@pytest.mark.parametrize("create_type", [Op.CREATE, Op.CREATE2])
@pytest.mark.parametrize("return_type", [Op.RETURN, Op.REVERT])
@pytest.mark.parametrize("return_type_in_create", [Op.RETURN, Op.REVERT])
@pytest.mark.slow()
def test_create2_return_data(
call_return_size: int,
create_type: Op,
Expand Down
1 change: 1 addition & 0 deletions tests/frontier/opcodes/test_calldatasize.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
[0, 2, 16, 33, 257],
)
@pytest.mark.parametrize("calldata_source", ["contract", "tx"])
@pytest.mark.slow()
def test_calldatasize(
state_test: StateTestFiller,
fork: Fork,
Expand Down
1 change: 1 addition & 0 deletions tests/frontier/opcodes/test_push.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def test_push(state_test: StateTestFiller, fork: Fork, pre: Alloc, push_opcode:
)
@pytest.mark.parametrize("stack_height", range(1024, 1026))
@pytest.mark.valid_from("Frontier")
@pytest.mark.slow()
def test_stack_overflow(
state_test: StateTestFiller, fork: Fork, pre: Alloc, push_opcode: Op, stack_height: int
):
Expand Down
5 changes: 3 additions & 2 deletions tests/frontier/scenarios/test_scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def scenarios(fork: Fork, pre: Alloc, test_program: ScenarioTestProgram) -> List
ProgramTstoreTload(),
ProgramLogs(),
ProgramSuicide(),
pytest.param(ProgramInvalidOpcode(), marks=[pytest.mark.slow()]),
ProgramInvalidOpcode(),
ProgramAddress(),
ProgramBalance(),
ProgramOrigin(),
Expand All @@ -159,7 +159,7 @@ def scenarios(fork: Fork, pre: Alloc, test_program: ScenarioTestProgram) -> List
ProgramReturnDataSize(),
ProgramReturnDataCopy(),
ProgramExtCodehash(),
pytest.param(ProgramBlockhash(), marks=[pytest.mark.slow()]),
ProgramBlockhash(),
ProgramCoinbase(),
ProgramTimestamp(),
ProgramNumber(),
Expand All @@ -176,6 +176,7 @@ def scenarios(fork: Fork, pre: Alloc, test_program: ScenarioTestProgram) -> List
ProgramAllFrontierOpcodes(),
],
)
@pytest.mark.slow()
def test_scenarios(
blockchain_test: BlockchainTestFiller,
fork: Fork,
Expand Down
1 change: 1 addition & 0 deletions tests/istanbul/eip152_blake2/test_blake2.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@
),
],
)
@pytest.mark.slow()
def test_blake2b(
state_test: StateTestFiller,
pre: Alloc,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
@EIPChecklist.Precompile.Test.InputLengths.Dynamic.Valid()
@EIPChecklist.GasCostChanges.Test.GasUpdatesMeasurement()
@pytest.mark.valid_from("Berlin")
@pytest.mark.slow()
def test_vectors_from_eip(
state_test: StateTestFiller,
pre: Alloc,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ def test_valid(
],
)
@pytest.mark.parametrize("expected_output", [Spec.INVALID], ids=[""])
@pytest.mark.slow()
def test_invalid(
state_test: StateTestFiller,
pre: Alloc,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
),
],
)
@pytest.mark.slow()
def test_valid(
state_test: StateTestFiller,
pre: Alloc,
Expand Down Expand Up @@ -247,6 +248,7 @@ def test_invalid(
),
],
)
@pytest.mark.slow()
def test_call_types(
state_test: StateTestFiller,
pre: Alloc,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
),
],
)
@pytest.mark.slow()
def test_valid(
state_test: StateTestFiller,
pre: Alloc,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ def test_invalid_length_g2msm(
@pytest.mark.parametrize("gas_modifier", [pytest.param(0, id="exact_gas")])
@pytest.mark.parametrize("expected_output", [Spec.PAIRING_TRUE], ids=[""])
@pytest.mark.parametrize("precompile_address", [Spec.PAIRING])
@pytest.mark.slow()
def test_valid_gas_pairing(
state_test: StateTestFiller,
env: Environment,
Expand Down
1 change: 1 addition & 0 deletions tests/prague/eip7702_set_code_tx/test_gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,7 @@ def gas_test_parameter_args(
@pytest.mark.parametrize(
**gas_test_parameter_args(include_pre_authorized=False, execution_gas_allowance=True)
)
@pytest.mark.slow()
def test_gas_cost(
state_test: StateTestFiller,
pre: Alloc,
Expand Down
3 changes: 3 additions & 0 deletions tests/prague/eip7702_set_code_tx/test_set_code_txs.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ def test_set_code_to_self_destruct(


@pytest.mark.with_all_create_opcodes
@pytest.mark.slow()
def test_set_code_to_contract_creator(
state_test: StateTestFiller,
pre: Alloc,
Expand Down Expand Up @@ -3562,6 +3563,7 @@ def test_creating_delegation_designation_contract(
),
],
)
@pytest.mark.slow()
def test_many_delegations(
state_test: StateTestFiller,
fork: Fork,
Expand Down Expand Up @@ -3824,6 +3826,7 @@ def test_set_code_from_account_with_non_delegating_code(
],
)
@pytest.mark.exception_test
@pytest.mark.slow()
def test_set_code_transaction_fee_validations(
state_test: StateTestFiller,
pre: Alloc,
Expand Down
2 changes: 2 additions & 0 deletions tests/shanghai/eip3860_initcode/test_initcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ def post(
return Alloc({create_contract_address: Account(code=initcode.deploy_code)})
return Alloc({create_contract_address: Account.NONEXISTENT})

@pytest.mark.slow()
def test_gas_usage(
self,
state_test: StateTestFiller,
Expand Down Expand Up @@ -501,6 +502,7 @@ def create2_word_cost(self, opcode: Op, fork: Fork, initcode: Initcode) -> int:
return ceiling_division(len(initcode), 32) * gas_costs.G_KECCAK_256_WORD

@pytest.mark.xdist_group(name="bigmem")
@pytest.mark.slow()
def test_create_opcode_initcode(
self,
state_test: StateTestFiller,
Expand Down
1 change: 1 addition & 0 deletions tests/shanghai/eip4895_withdrawals/test_withdrawals.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,7 @@ def test_large_amount(
@pytest.mark.xdist_group(name="bigmem")
@pytest.mark.parametrize("amount", [0, 1])
@pytest.mark.with_all_precompiles
@pytest.mark.slow()
def test_withdrawing_to_precompiles(
blockchain_test: BlockchainTestFiller,
pre: Alloc,
Expand Down
Loading