ethereum / ethereum/execution-specs

bug(fill): detect and raise an error if `state_test()` or `blockchain_test()` is executed more than once in one test function execution

Open
#1,480 1 comment 1 reaction 0 assignees View on GitHub
A-test-fill C-bug P-medium stale
Dominant language
Python
Stars
1.2k
Forks
505
Avg merge
2d 14h
Merged PRs (30d)
116

Description

For example, see https://github.com/jochem-brouwer/execution-spec-tests/blob/dccaec30b31625c9eb4e6395d6caa854307204cd/tests/byzantium/precompiles/test_05_modexp.py which calls `state_test` in a for loop in a test function.

While every `state_test()` execution, respectively, test vector in `data`, will get filled, only the last generated test fixture will ever get stored and written to disk by the fixture collector.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.