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