commit:     2b334b3a3e2f3e7d5ba3f5a5da484a4629b91f8b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Apr  9 14:58:26 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Apr  9 14:58:54 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b334b3a

dev-python/zope-configuration: Sync python_test with zope-interface

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../zope-configuration/zope-configuration-4.4.1-r1.ebuild      | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/dev-python/zope-configuration/zope-configuration-4.4.1-r1.ebuild 
b/dev-python/zope-configuration/zope-configuration-4.4.1-r1.ebuild
index 5f6facdf2553..c83af620f922 100644
--- a/dev-python/zope-configuration/zope-configuration-4.4.1-r1.ebuild
+++ b/dev-python/zope-configuration/zope-configuration-4.4.1-r1.ebuild
@@ -44,10 +44,12 @@ python_compile() {
 }
 
 python_test() {
-       cd "${BUILD_DIR}/install$(python_get_sitedir)/zope" || die
-       cat > __init__.py <<-EOF || die
+       cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
+       # this is needed to keep the tests working while
+       # dev-python/namespace-zope is still installed
+       cat > zope/__init__.py <<-EOF || die
                __path__ = __import__('pkgutil').extend_path(__path__, __name__)
        EOF
-       eunittest -s configuration/tests
-       rm __init__.py || die
+       eunittest
+       rm zope/__init__.py || die
 }

Reply via email to