You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fill: plain pytest test in a fixture directory crashes collection with INTERNALERROR #3608
A test function under tests/ that does not request state_test/blockchain_test/transaction_test makes fill abort during collection instead of being skipped or reported.
Reproduce: add a file tests/frontier/mpt/test_probe.py containing def test_x(): assert True, then run uv run fill tests/frontier/mpt/ --fork Osaka.
Result: INTERNALERROR> ValueError: No spec type format found in the test item. raised from packages/testing/src/execution_testing/cli/pytest_commands/plugins/filler/filler.py in pytest_collection_modifyitems at the get_spec_format_for_item(params) call. No tests run.
Expected: either the item is deselected with a clear message, or collection fails with an actionable error naming the offending test.
Context: found while adding a helper self-check next to tests/frontier/mpt/ (PR #3600). Workaround used there: run the check at import time from a non-test_ module.
Plan: in pytest_collection_modifyitems (filler.py), detect test items collected under tests/ that request no spec type (state_test/blockchain_test/transaction_test) and deselect them with an actionable message naming the offending test, instead of letting get_spec_format_for_item() raise ValueError that pytest reports as INTERNALERROR.
Activity
CodeTrainerMan commentedon Sep 21, 2026
Hi @CPerezz, I'd like to take this one.
Plan: in
pytest_collection_modifyitems(filler.py), detect test items collected undertests/that request no spec type (state_test/blockchain_test/transaction_test) and deselect them with an actionable message naming the offending test, instead of lettingget_spec_format_for_item()raiseValueErrorthat pytest reports asINTERNALERROR.Opening a PR shortly.
fix(test-fill): fail collection of tests without a spec fixture (ethe…
fix(test-fill): fail collection of tests without a spec fixture (#3672)