Files
Khem Raj 809a4c4546 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>
2026-11-06 21:27:18 -08:00

22 lines
721 B
BlitzBasic

SUMMARY = "Draws Python object reference graphs with graphviz"
HOMEPAGE = "https://mg.pov.lt/objgraph/"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e48a556235f55ad7d4234475657f68a7"
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
PACKAGECONFIG ??= ""
PACKAGECONFIG[ipython] = ",,,python3-graphviz"
do_install_ptest:append() {
install -Dm 0644 ${S}/tests.py ${D}${PTEST_PATH}/tests.py
}
RDEPENDS:${PN} += "python3-core python3-io"
RDEPENDS:${PN}-ptest += "python3-tox"