Skip to content

Commit a3b7ea1

Browse files
committed
fixed static test filling
1 parent f994c4e commit a3b7ea1

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

pytest.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ addopts =
1313
-p pytest_plugins.filler.pre_alloc
1414
-p pytest_plugins.filler.filler
1515
-p pytest_plugins.filler.ported_tests
16+
-p pytest_plugins.filler.static_filler
1617
-p pytest_plugins.shared.execute_fill
1718
-p pytest_plugins.forks.forks
1819
-p pytest_plugins.eels_resolver

src/ethereum_test_specs/static_state/common/compile_yul.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ def safe_solc_command(
1313
source_path = Path(source_file)
1414
if not source_path.exists():
1515
raise FileNotFoundError(f"Source file not found: {source_file}")
16-
if source_path.suffix not in (".yul", ".sol"):
17-
raise ValueError(f"Invalid file extension for solc: {source_path.suffix}")
1816

1917
cmd: list[str] = ["solc"]
2018

src/pytest_plugins/solc/solc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def pytest_configure(config: pytest.Config):
103103
config.stash[metadata_key]["Tools"]["solc"] = str(solc_version_semver)
104104

105105
# Check minimum version requirement
106+
solc_version_semver = Version.parse(str(solc_version_semver).split()[0].split("-")[0])
106107
if solc_version_semver < SOLC_EXPECTED_MIN_VERSION:
107108
pytest.exit(
108109
f"Unsupported solc version: {solc_version_semver}. Minimum required version is "

0 commit comments

Comments
 (0)