Skip to content

Commit 322fd26

Browse files
chores(fill, pytest): mark slow tests that were not marked as such yet (#2220)
* mark slow tests that were not marked as such yet * Apply suggestions from code review --------- Co-authored-by: Mario Vega <[email protected]>
1 parent 9fc77e2 commit 322fd26

File tree

19 files changed

+28
-2
lines changed

19 files changed

+28
-2
lines changed

tests/berlin/eip2929_gas_cost_increases/test_precompile_warming.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def precompile_addresses_in_predecessor_successor(
7979
)
8080
@EIPChecklist.Precompile.Test.ForkTransition.Before.Cold(eip=[7951])
8181
@EIPChecklist.Precompile.Test.ForkTransition.After.Warm(eip=[7951])
82+
@pytest.mark.slow()
8283
def test_precompile_warming(
8384
blockchain_test: BlockchainTestFiller,
8485
fork: Fork,

tests/berlin/eip2930_access_list/test_tx_intrinsic_gas.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
],
146146
)
147147
@pytest.mark.with_all_tx_types(selector=lambda tx_type: tx_type in [1, 2])
148+
@pytest.mark.slow()
148149
def test_tx_intrinsic_gas(
149150
state_test: StateTestFiller,
150151
tx_type: int,

tests/cancun/eip4844_blobs/test_blob_txs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,7 @@ def test_invalid_block_blob_count(
629629
@pytest.mark.parametrize("tx_error", [TransactionException.INSUFFICIENT_ACCOUNT_FUNDS], ids=[""])
630630
@pytest.mark.exception_test
631631
@pytest.mark.valid_from("Cancun")
632+
@pytest.mark.slow()
632633
def test_insufficient_balance_blob_tx(
633634
state_test: StateTestFiller,
634635
state_env: Environment,
@@ -1405,6 +1406,7 @@ def test_blob_tx_attribute_gasprice_opcode(
14051406
)
14061407
@pytest.mark.exception_test
14071408
@pytest.mark.valid_at_transition_to("Cancun")
1409+
@pytest.mark.slow()
14081410
def test_blob_type_tx_pre_fork(
14091411
state_test: StateTestFiller,
14101412
pre: Alloc,

tests/cancun/eip4844_blobs/test_excess_blob_gas.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ def all_invalid_blob_gas_used_combinations(fork: Fork) -> Iterator[Tuple[int, in
480480
)
481481
@pytest.mark.parametrize("parent_blobs", [0])
482482
@pytest.mark.exception_test
483+
@pytest.mark.slow()
483484
def test_invalid_blob_gas_used_in_header(
484485
blockchain_test: BlockchainTestFiller,
485486
env: Environment,
@@ -759,6 +760,7 @@ def test_invalid_excess_blob_gas_change(
759760
lambda fork: range(fork.target_blobs_per_block()),
760761
)
761762
@pytest.mark.exception_test
763+
@pytest.mark.slow()
762764
def test_invalid_negative_excess_blob_gas(
763765
blockchain_test: BlockchainTestFiller,
764766
env: Environment,
@@ -809,6 +811,7 @@ def test_invalid_negative_excess_blob_gas(
809811
lambda fork: [fork.target_blobs_per_block() + 1],
810812
)
811813
@pytest.mark.exception_test
814+
@pytest.mark.slow()
812815
def test_invalid_non_multiple_excess_blob_gas(
813816
blockchain_test: BlockchainTestFiller,
814817
env: Environment,

tests/cancun/eip4844_blobs/test_point_evaluation_precompile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ def all_external_vectors() -> List:
449449
)
450450
@pytest.mark.parametrize("versioned_hash", [None])
451451
@pytest.mark.valid_from("Cancun")
452+
@pytest.mark.slow()
452453
def test_external_vectors(
453454
state_test: StateTestFiller,
454455
pre: Alloc,

tests/constantinople/eip1014_create2/test_create_returndata.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
@pytest.mark.parametrize("create_type", [Op.CREATE, Op.CREATE2])
2929
@pytest.mark.parametrize("return_type", [Op.RETURN, Op.REVERT])
3030
@pytest.mark.parametrize("return_type_in_create", [Op.RETURN, Op.REVERT])
31+
@pytest.mark.slow()
3132
def test_create2_return_data(
3233
call_return_size: int,
3334
create_type: Op,

tests/frontier/opcodes/test_calldatasize.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
[0, 2, 16, 33, 257],
2020
)
2121
@pytest.mark.parametrize("calldata_source", ["contract", "tx"])
22+
@pytest.mark.slow()
2223
def test_calldatasize(
2324
state_test: StateTestFiller,
2425
fork: Fork,

tests/frontier/opcodes/test_push.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ def test_push(state_test: StateTestFiller, fork: Fork, pre: Alloc, push_opcode:
9191
)
9292
@pytest.mark.parametrize("stack_height", range(1024, 1026))
9393
@pytest.mark.valid_from("Frontier")
94+
@pytest.mark.slow()
9495
def test_stack_overflow(
9596
state_test: StateTestFiller, fork: Fork, pre: Alloc, push_opcode: Op, stack_height: int
9697
):

tests/frontier/scenarios/test_scenarios.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def scenarios(fork: Fork, pre: Alloc, test_program: ScenarioTestProgram) -> List
144144
ProgramTstoreTload(),
145145
ProgramLogs(),
146146
ProgramSuicide(),
147-
pytest.param(ProgramInvalidOpcode(), marks=[pytest.mark.slow()]),
147+
ProgramInvalidOpcode(),
148148
ProgramAddress(),
149149
ProgramBalance(),
150150
ProgramOrigin(),
@@ -159,7 +159,7 @@ def scenarios(fork: Fork, pre: Alloc, test_program: ScenarioTestProgram) -> List
159159
ProgramReturnDataSize(),
160160
ProgramReturnDataCopy(),
161161
ProgramExtCodehash(),
162-
pytest.param(ProgramBlockhash(), marks=[pytest.mark.slow()]),
162+
ProgramBlockhash(),
163163
ProgramCoinbase(),
164164
ProgramTimestamp(),
165165
ProgramNumber(),
@@ -176,6 +176,7 @@ def scenarios(fork: Fork, pre: Alloc, test_program: ScenarioTestProgram) -> List
176176
ProgramAllFrontierOpcodes(),
177177
],
178178
)
179+
@pytest.mark.slow()
179180
def test_scenarios(
180181
blockchain_test: BlockchainTestFiller,
181182
fork: Fork,

tests/istanbul/eip152_blake2/test_blake2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@
389389
),
390390
],
391391
)
392+
@pytest.mark.slow()
392393
def test_blake2b(
393394
state_test: StateTestFiller,
394395
pre: Alloc,

0 commit comments

Comments
 (0)