python3-objgraph: Fix intermittent test_at_addrs ptest failure

get_new_ids() keeps the ids it saw in earlier calls, including those of
objects freed since. When the list created by test_at_addrs reuses one
of those addresses it is not reported as new and the test fails, which
was seen on musl qemux86-64:

  {'python3-objgraph': ['tests.py:AtAddrsTest.test_at_addrs']}

Refresh the baseline right before creating the list.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Khem Raj committed 2026-11-06 21:27:18 -08:00
1 parent c093bc4cb2
commit 809a4c4546
2 files changed
+45 -1

No files matched your search

@@ -3,7 +3,9 @@ HOMEPAGE = "https://mg.pov.lt/objgraph/"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e48a556235f55ad7d4234475657f68a7"
SRC_URI:append = " file://run-ptest"
SRC_URI:append = " file://run-ptest \
file://0001-Make-test_at_addrs-independent-of-earlier-get_new_id.patch \
"
SRC_URI[sha256sum] = "b6ef4b244217410509b257970413b01a979d54df48d2d4055b6941e8679ddbbb"
inherit pypi setuptools3 ptest-python-pytest