upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/test_run_gpu_tests_python_assembler.py
diff options
context:
space:
mode:
authorMoonEyes <14891700+MoonEyes@users.noreply.github.com>2026-12-02 11:11:41 +0100
committerMoonEyes <14891700+MoonEyes@users.noreply.github.com>2026-12-02 11:11:41 +0100
commitb56408e2d79ac1e048c0f53f7d06e80dcf450ecf (patch)
treea0f04cae5b66aeaf017a30c6393b941777f00a13 /tests/test_run_gpu_tests_python_assembler.py
parent8a95eac1ca3de8385524411df096f489f872716c (diff)
rbf0_encode: check record shapes before reading offsets
The short-count change read the offset of every attribute and content record before the shape checks, so a malformed record (None, a number or a string in attributes/content) raised TypeError or AttributeError instead of the documented EncodeError "value". This broke four subtests of test_bool_recorded_lengths_and_malformed_element_children on current main, as reported by reviewers (CHANGES_REQUESTED on #2386). Move the attributes/content shape checks ahead of the offset lists, and add a regression subtest with a flagged element and malformed records. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_run_gpu_tests_python_assembler.py')
0 files changed, 0 insertions, 0 deletions