Skip to content

Remove solc dependency on the main filler (python source code)Β #1759

@marioevz

Description

@marioevz

TL;DR Remove solc dependency from uv run fill and only leave it at uv run fill --fill-static-tests:

  • Remove yul from python tests referencing it:
    • tests/cancun/eip6780_selfdestruct/test_selfdestruct_revert.py
    • tests/constantinople/eip1014_create2/test_recreate.py
    • tests/homestead/yul/test_yul_example.py
  • Move all yul plugin functionality from src/pytest_plugins/shared/execute_fill.py to src/pytest_plugins/filler/static_filler.py:
    • Remove exports from src/ethereum_test_tools/__init__.py so it cannot be referenced in python tests anymore.
    • Remove pytest_plugins.solc.solc and pytest_plugins.filler.static_filler plugins from pytest.ini to be dynamically loaded when the --fill-static-tests flag is used.
    • Also move the flag --fill-static-tests from src/pytest_plugins/filler/static_filler.py to src/pytest_plugins/shared/execute_fill.py: We have to do this in order to read the flag in a plugin that is always loaded.
    • Move yul fixture from src/pytest_plugins/shared/execute_fill.py to src/pytest_plugins/filler/static_filler.py so it's only applied to the tests when filling static tests.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions