Skip to content

Commit 3b16499

Browse files
committed
fix(tests): allow variants of validation exceptions
1 parent b9fe338 commit 3b16499

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Diff for: tests/osaka/eip7692_eof_v1/eip3540_eof_v1/test_container_validation.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,10 @@ def test_valid_containers(
426426
# EOF code containing type section size (Size 1)
427427
name="EOF1I4750_0003",
428428
raw_bytes="ef00010100010200010001ff00000000800000fe",
429-
validity_error=EOFException.INVALID_TYPE_SECTION_SIZE,
429+
validity_error=[
430+
EOFException.INVALID_TYPE_SECTION_SIZE,
431+
EOFException.INVALID_SECTION_BODIES_SIZE,
432+
],
430433
),
431434
Container(
432435
# EOF code containing type section size (Size 8 - 1 Code section)

Diff for: tests/osaka/eip7692_eof_v1/eip3540_eof_v1/test_section_size.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ def __str__(self) -> str:
7171
id="type_size_zero",
7272
),
7373
pytest.param(
74-
SectionKind.TYPE, SectionSize.UNDERSIZE, EOFException.INVALID_TYPE_SECTION_SIZE
74+
SectionKind.TYPE,
75+
SectionSize.UNDERSIZE,
76+
[EOFException.INVALID_SECTION_BODIES_SIZE, EOFException.INVALID_TYPE_SECTION_SIZE],
77+
id="type_size_undersize",
7578
),
7679
pytest.param(
7780
SectionKind.TYPE, SectionSize.OVERSIZE, EOFException.INVALID_SECTION_BODIES_SIZE

0 commit comments

Comments
 (0)