From a7e92a62528e85ad1bf3eafc8c824aa0ce066386 Mon Sep 17 00:00:00 2001 From: Julien Roy Date: Wed, 8 Feb 2023 00:17:57 -0500 Subject: dev-python/*: WIP tests Signed-off-by: Julien Roy --- dev-python/zope-location/zope-location-4.3.ebuild | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'dev-python/zope-location') diff --git a/dev-python/zope-location/zope-location-4.3.ebuild b/dev-python/zope-location/zope-location-4.3.ebuild index 7fe42da..dc2e5d9 100644 --- a/dev-python/zope-location/zope-location-4.3.ebuild +++ b/dev-python/zope-location/zope-location-4.3.ebuild @@ -32,7 +32,7 @@ RDEPEND=" DEPEND="${RDEPEND}" distutils_enable_sphinx docs -distutils_enable_tests unittest +distutils_enable_tests setup.py src_prepare() { # strip rdep specific to namespaces @@ -45,7 +45,8 @@ python_compile() { find "${BUILD_DIR}" -name '*.pth' -delete || die } -src_test(){ - cd "${S}/src/zope/location" || die - distutils-r1_src_test +python_test() { + distutils_write_namespace zope + zope-testrunner -pvc -j "$(nproc)" --usecompiled \ + --path "${BUILD_DIR}/install$(python_get_sitedir)/zope" || die } -- cgit v1.2.3