diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-04-09 16:58:26 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-04-09 16:58:54 +0200 |
commit | 2b334b3a3e2f3e7d5ba3f5a5da484a4629b91f8b (patch) | |
tree | e76bf195f6f1a5a9888fb2ea2a42afd2a0ad0364 /dev-python/zope-configuration | |
parent | dev-python/zope-interface: EAPI 8, PEP517, namespace retirement (diff) | |
download | gentoo-2b334b3a3e2f3e7d5ba3f5a5da484a4629b91f8b.tar.gz gentoo-2b334b3a3e2f3e7d5ba3f5a5da484a4629b91f8b.tar.bz2 gentoo-2b334b3a3e2f3e7d5ba3f5a5da484a4629b91f8b.zip |
dev-python/zope-configuration: Sync python_test with zope-interface
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/zope-configuration')
-rw-r--r-- | dev-python/zope-configuration/zope-configuration-4.4.1-r1.ebuild | 10 |
1 files 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 } |