Skip to content

Commit 602b611

Browse files
refactor(benchmark): remove unused markers and update docstring for clarity
1 parent 139a02e commit 602b611

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/ethereum_test_specs/benchmark.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Ethereum benchmark test spec definition and filler."""
22

33
import math
4-
from typing import Callable, ClassVar, Dict, Generator, List, Optional, Sequence, Type
4+
from typing import Callable, ClassVar, Generator, List, Optional, Sequence, Type
55

66
from pydantic import Field
77

@@ -28,12 +28,11 @@
2828

2929
class BenchmarkTest(BaseTest):
3030
"""
31-
Filler type designed specifically for benchmark test cases.
31+
Test type designed specifically for benchmark test cases.
3232
3333
This test type is designed specifically for benchmark test cases and supports:
34-
- High compatibility with both blockchain_test and state_test formats
34+
- High compatibility with blockchain_test format
3535
- Support for EIP-7825 transaction gas limit cap (2^24)
36-
- Only generates blockchain_test format as output
3736
- Automatic splitting of tests when gas limit exceeds the cap
3837
"""
3938

@@ -56,10 +55,6 @@ class BenchmarkTest(BaseTest):
5655
),
5756
]
5857

59-
supported_markers: ClassVar[Dict[str, str]] = {
60-
"benchmark_test_only": "Only generate a benchmark test fixture",
61-
}
62-
6358
def split_transaction(self, tx: Transaction, gas_limit_cap: int | None) -> List[Transaction]:
6459
"""Split a transaction that exceeds the gas limit cap into multiple transactions."""
6560
if (gas_limit_cap is None) or (tx.gas_limit <= gas_limit_cap):

0 commit comments

Comments
 (0)