Skip to content

Commit 8efe2d3

Browse files
refactor: update import path
1 parent fe2835c commit 8efe2d3

25 files changed

+88
-88
lines changed

tests/benchmark/compute/helpers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
from enum import Enum, auto
55
from typing import cast
66

7-
from ethereum_test_base_types.base_types import Hash
8-
from ethereum_test_forks import Fork
9-
from ethereum_test_vm import Opcodes as Op
7+
from execution_testing import Fork, Hash, Op
108

119
from tests.osaka.eip7951_p256verify_precompiles.spec import FieldElement
1210
from tests.prague.eip2537_bls_12_381_precompiles.spec import (

tests/benchmark/compute/instruction/arithmetic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
import random
55

66
import pytest
7-
from ethereum_test_forks import Fork
8-
from ethereum_test_tools import (
7+
from execution_testing import (
98
Alloc,
109
BenchmarkTestFiller,
1110
Bytecode,
11+
Fork,
1212
JumpLoopGenerator,
13+
Op,
1314
Transaction,
1415
)
15-
from ethereum_test_vm import Opcodes as Op
1616

1717
from tests.benchmark.compute.helpers import DEFAULT_BINOP_ARGS, make_dup, neg
1818

tests/benchmark/compute/instruction/bitwise.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
from typing import Callable
55

66
import pytest
7-
from ethereum_test_forks import Fork
8-
from ethereum_test_tools import (
7+
from execution_testing import (
98
Alloc,
109
BenchmarkTestFiller,
1110
Bytecode,
11+
Fork,
1212
JumpLoopGenerator,
13+
Op,
1314
Transaction,
1415
)
15-
from ethereum_test_vm import Opcodes as Op
1616

1717
from tests.benchmark.compute.helpers import (
1818
DEFAULT_BINOP_ARGS,

tests/benchmark/compute/instruction/block.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"""Benchmark block instructions."""
22

33
import pytest
4-
from ethereum_test_tools import (
4+
from execution_testing import (
55
BenchmarkTestFiller,
66
Block,
77
ExtCallGenerator,
8+
Op,
89
)
9-
from ethereum_test_vm import Opcodes as Op
1010

1111
# Block instructions:
1212
# BLOCKHASH, COINBASE, TIMESTAMP, NUMBER, PREVRANDAO, GASLIMIT, CHAINID

tests/benchmark/compute/instruction/comparison.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""Benchmark comparison instructions."""
22

33
import pytest
4-
from ethereum_test_tools import (
4+
from execution_testing import (
55
BenchmarkTestFiller,
66
JumpLoopGenerator,
7+
Op,
78
)
8-
from ethereum_test_vm import Opcodes as Op
99

1010
# Comparison instructions:
1111
# LT, SLT, GT, SGT, EQ, ISZERO

tests/benchmark/compute/instruction/control_flow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
"""Benchmark control flow instructions."""
22

3-
from ethereum_test_tools import (
3+
from execution_testing import (
44
Alloc,
55
BenchmarkTestFiller,
66
ExtCallGenerator,
77
JumpLoopGenerator,
8+
Op,
89
Transaction,
910
)
10-
from ethereum_test_vm import Opcodes as Op
1111

1212
# Control flow instructions:
1313
# STOP, JUMP, JUMPI, PC, GAS, JUMPDEST

tests/benchmark/compute/instruction/environment.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,33 @@
44
from typing import Any, Dict
55

66
import pytest
7-
from ethereum_test_forks import Fork
8-
from ethereum_test_tools import (
7+
from execution_testing import (
98
Account,
109
Address,
1110
Alloc,
11+
BenchmarkTestFiller,
1212
Block,
1313
BlockchainTestFiller,
1414
Bytecode,
1515
Bytes,
1616
Environment,
17+
ExtCallGenerator,
18+
Fork,
1719
Hash,
20+
JumpLoopGenerator,
21+
Op,
1822
Transaction,
23+
TransactionType,
1924
While,
25+
add_kzg_version,
2026
compute_create2_address,
2127
)
22-
from ethereum_test_types import TransactionType, add_kzg_version
23-
from ethereum_test_vm import Opcodes as Op
2428

2529
from tests.benchmark.compute.helpers import (
2630
XOR_TABLE,
2731
CallDataOrigin,
2832
ReturnDataStyle,
2933
)
30-
from tests.benchmark.test_worst_compute import (
31-
BenchmarkTestFiller,
32-
ExtCallGenerator,
33-
JumpLoopGenerator,
34-
)
3534
from tests.cancun.eip4844_blobs.spec import Spec as BlobsSpec
3635

3736
# Environmental instructions:

tests/benchmark/compute/instruction/keccak.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
import math
44

5-
from ethereum_test_forks import Fork
6-
from ethereum_test_tools import (
5+
from execution_testing import (
76
BenchmarkTestFiller,
7+
Fork,
88
JumpLoopGenerator,
9+
Op,
910
)
10-
from ethereum_test_vm import Opcodes as Op
1111

1212
# Keccak instructions:
1313
# KECCAK256

tests/benchmark/compute/instruction/log.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
"""Benchmark log instructions."""
22

33
import pytest
4-
from ethereum_test_tools import (
4+
from execution_testing import (
55
BenchmarkTestFiller,
66
Bytecode,
77
JumpLoopGenerator,
8+
Op,
89
)
9-
from ethereum_test_vm import Opcode
10-
from ethereum_test_vm import Opcodes as Op
1110

1211
# Log instructions:
1312
# LOG0, LOG1, LOG2, LOG3, LOG4
@@ -41,7 +40,7 @@
4140
@pytest.mark.parametrize("fixed_offset", [True, False])
4241
def test_log(
4342
benchmark_test: BenchmarkTestFiller,
44-
opcode: Opcode,
43+
opcode: Op,
4544
zeros_topic: bool,
4645
size: int,
4746
fixed_offset: bool,

tests/benchmark/compute/instruction/memory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
"""Benchmark memory instructions."""
22

33
import pytest
4-
from ethereum_test_tools import (
4+
from execution_testing import (
55
BenchmarkTestFiller,
66
Bytecode,
77
ExtCallGenerator,
88
JumpLoopGenerator,
9+
Op,
910
)
10-
from ethereum_test_vm import Opcodes as Op
1111

1212
# Memory instructions:
1313
# MSTORE, MSTORE8, MLOAD, MSIZE, MCOPY

0 commit comments

Comments
 (0)