Skip to content

Commit e5d05c8

Browse files
committed
fix: ruff
1 parent b45b797 commit e5d05c8

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
"""
2-
Test for precompiles that apply for all forks starting from Frontier.
3-
"""
1+
"""Test for precompiles that apply for all forks starting from Frontier."""

tests/frontier/precompiles/test_precompile_absence.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
"""
2-
abstract: Test Calling Precompile Range (close to zero)
3-
4-
"""
1+
"""abstract: Test Calling Precompile Range (close to zero)."""
52

63
import pytest
74

85
from ethereum_test_forks import Fork
9-
from ethereum_test_tools import Account, Address, Alloc, Bytecode
6+
from ethereum_test_tools import (
7+
Account,
8+
Address,
9+
Alloc,
10+
Bytecode,
11+
StateTestFiller,
12+
Storage,
13+
Transaction,
14+
)
1015
from ethereum_test_tools import Opcodes as Op
11-
from ethereum_test_tools import StateTestFiller, Storage, Transaction
1216

1317
UPPER_BOUND = 0x101
1418
RETURNDATASIZE_OFFSET = 0x10000000000000000 # Must be greater than UPPER_BOUND
@@ -29,9 +33,7 @@ def test_precompile_absence(
2933
fork: Fork,
3034
calldata_size: int,
3135
):
32-
"""
33-
Test that addresses close to zero are not precompiles unless active in the fork.
34-
"""
36+
"""Test that addresses close to zero are not precompiles unless active in the fork."""
3537
active_precompiles = fork.precompiles()
3638
storage = Storage()
3739
call_code = Bytecode()

0 commit comments

Comments
 (0)