python3-rapidjson: deselect test broken by modern CPython refcounting

test_endarray_leak asserts sys.getrefcount(j1['v']) == 3, but modern
CPython's specialized dict/subscript bytecode holds one fewer
temporary reference during the call, so the real count is 2 regardless
of environment (reproduces on plain upstream CPython 3.13, unrelated
to this target). Upstream test-authoring assumption broken by CPython
internals, not a packaging issue.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2026-08-29 21:43:05 -07:00
committed by Khem Raj
parent 94f51886d4
commit 7528dca88c
@@ -26,3 +26,13 @@ RDEPENDS:${PN} += " \
python3-core \
"
do_install_ptest:append() {
# test_endarray_leak asserts sys.getrefcount(j1['v']) == 3, but modern
# CPython's specialized dict/subscript bytecode holds one fewer temporary
# reference during the call, so the real count is 2 regardless of
# environment (reproduces on plain upstream CPython 3.13, unrelated to
# this target). Upstream test-authoring assumption broken by CPython
# internals, not a packaging issue.
sed -i -e "/--automake/ s/$/ -k 'not test_endarray_leak'/" \
${D}${PTEST_PATH}/run-ptest
}