execution-spec-tests
execution-spec-tests copied to clipboard
EOFExceptionMismatch doesn't print the container name
A failing EOFExceptionMismatch doesn't know the cointaner name so it cannot display it. Displaying the container name should help to identify where the code comes from.
E ethereum_test_tools.spec.eof.eof_test.EOFExceptionMismatch: EOF code raised a different exception than expected:
E Code: 0xef00010100040200010001040004000000000000aabbcc
E Expected: EOFException.INVALID_SECTION_BODIES_SIZE (err: invalid_section_bodies_size)
E Got: EOFException.INVALID_FIRST_SECTION_TYPE (err: invalid_first_section_type)
src/ethereum_test_tools/spec/eof/eof_test.py:202: EOFExceptionMismatch
Actually, I noticed the failing test name has it FAILED tests/prague/eip3540_eof_v1/test_code_validation.py::test_legacy_initcode_invalid_eof_v1_contract[fork_Prague-eof_test-no_section_terminator_4a] - ethereum_test_tools.spec.eof.eof_test.EOFExceptionMismatch: EOF code raised a different exception than expected: . So the current behavior might be fine.