pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-psleak: add test target, update TODO



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Sat Dec 27 17:15:54 2025 +0100
Changeset:	33084079de13fed4b3111ab74c18919e2417ba78

Modified Files:
	py-psleak/Makefile
	py-psleak/TODO

Log Message:
py-psleak: add test target, update TODO

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=33084079de13fed4b3111ab74c18919e2417ba78

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-psleak/Makefile |  5 +++++
 py-psleak/TODO     | 21 ++-------------------
 2 files changed, 7 insertions(+), 19 deletions(-)

diffs:
diff --git a/py-psleak/Makefile b/py-psleak/Makefile
index 05a908ee47..1e1dd53b44 100644
--- a/py-psleak/Makefile
+++ b/py-psleak/Makefile
@@ -14,5 +14,10 @@ TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
 DEPENDS+=	${PYPKGPREFIX}-psutil-[0-9]*:../../sysutils/py-psutil
 TEST_DEPENDS+=	${PYPKGPREFIX}-test-instafail-[0-9]*:../../devel/py-test-instafail
 
+do-test:
+	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${MAKE} build test
+
 .include "../../lang/python/wheel.mk"
+# for test
+.include "../../lang/python/tool.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/py-psleak/TODO b/py-psleak/TODO
index 5ffbd219ee..5fac5f2ff6 100644
--- a/py-psleak/TODO
+++ b/py-psleak/TODO
@@ -1,21 +1,4 @@
-Self tests fail
-
-=================================================================================================== test session starts ====================================================================================================
-__________________________________________________________________________________________ ERROR collecting tests/test_c_leaks.py __________________________________________________________________________________________
-ImportError while importing test module '/scratch/sysutils/py-psleak/work/psleak-0.1.2/tests/test_c_leaks.py'.
-Hint: make sure your test modules/packages have valid Python names.
-Traceback:
-/usr/pkg/lib/python3.14/importlib/__init__.py:88: in import_module
-    return _bootstrap._gcd_import(name[level:], package, level)
-           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-tests/test_c_leaks.py:8: in <module>
-    import test_ext as cext
-E   ModuleNotFoundError: No module named 'test_ext'
-collected 37 items / 1 error
-
-================================================================================================= short test summary info ==================================================================================================
-ERROR tests/test_c_leaks.py
-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-===================================================================================================== 1 error in 0.09s =====================================================================================================
+5 test failures.
 
 https://github.com/giampaolo/psleak/issues/6
+


Home | Main Index | Thread Index | Old Index