Skip to content

Commit f715095

Browse files
committed
test_aot_lib: the pinned messages are a list of rows, not a dict keyed by arguments that hold lists
CI run 43805297931: TypeError (unhashable list) in the test's own table on ubuntu, macOS and the sanitizer job; nothing else failed there.
1 parent 3807d3a commit f715095

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎python-multiplatform-ksp/src/test/python/test_aot_lib.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -523,12 +523,12 @@ def test_failure_matches_cpython_class_and_message(lib, ref, name, args):
523523

524524
def test_the_messages_are_the_ones_cpython_raises(lib, ref):
525525
"""Pin three of them literally, so that a change of the reference interpreter shows here."""
526-
want = {("rem", (5, 0)): ("ZeroDivisionError", "division by zero"),
527-
("root", (-1.0,)): ("ValueError", "expected a nonnegative input, got -1.0"),
528-
("get_f", ([1.0], 1)): ("IndexError", "list index out of range"),
529-
("set_f", ([1.0], 5, 1.0)): ("IndexError", "list assignment index out of range")}
530-
for (name, args), expected in want.items():
531-
assert run_row(lib, ref, name, args)[1:] == expected
526+
want = [("rem", (5, 0), ("ZeroDivisionError", "division by zero")), # pairs, not a dict: the
527+
("root", (-1.0,), ("ValueError", "expected a nonnegative input, got -1.0")), # arguments hold lists
528+
("get_f", ([1.0], 1), ("IndexError", "list index out of range")),
529+
("set_f", ([1.0], 5, 1.0), ("IndexError", "list assignment index out of range"))]
530+
for name, args, expected in want:
531+
assert run_row(lib, ref, name, args)[1:] == expected, (name, args)
532532

533533

534534
def test_a_bool_argument_other_than_0_or_1_is_true(lib, ref):

0 commit comments

Comments
 (0)