commit: 12fe9af7a991bb03bceb08456c2770e949247277
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 9 14:36:47 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Apr 9 14:37:04 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12fe9af7
dev-python/zope-configuration: Use pkgutil-style namespace for tests
Use pkgutil-style namespace for testing since it seems to work fine
when site-packages has either pkg_resources or PEP 420 namespaces.
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/zope-configuration/zope-configuration-4.4.1-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 402cfde1a07c..5f6facdf2553 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
@@ -46,7 +46,7 @@ python_compile() {
python_test() {
cd "${BUILD_DIR}/install$(python_get_sitedir)/zope" || die
cat > __init__.py <<-EOF || die
- __import__('pkg_resources').declare_namespace(__name__)
+ __path__ = __import__('pkgutil').extend_path(__path__, __name__)
EOF
eunittest -s configuration/tests
rm __init__.py || die