diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-04-09 16:36:47 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-04-09 16:37:04 +0200 |
commit | 12fe9af7a991bb03bceb08456c2770e949247277 (patch) | |
tree | a5f8c4b84932858487a5df816566b6f59cbc3d1b /dev-python/zope-configuration | |
parent | dev-libs/icu-layoutex: Drop (diff) | |
download | gentoo-12fe9af7a991bb03bceb08456c2770e949247277.tar.gz gentoo-12fe9af7a991bb03bceb08456c2770e949247277.tar.bz2 gentoo-12fe9af7a991bb03bceb08456c2770e949247277.zip |
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@gentoo.org>
Diffstat (limited to 'dev-python/zope-configuration')
-rw-r--r-- | dev-python/zope-configuration/zope-configuration-4.4.1-r1.ebuild | 2 |
1 files changed, 1 insertions, 1 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 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 |