Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/zope-configuration/
Date: Sat, 09 Apr 2022 14:59:00
Message-Id: 1649516334.2b334b3a3e2f3e7d5ba3f5a5da484a4629b91f8b.mgorny@gentoo
1 commit: 2b334b3a3e2f3e7d5ba3f5a5da484a4629b91f8b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 9 14:58:26 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 9 14:58:54 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b334b3a
7
8 dev-python/zope-configuration: Sync python_test with zope-interface
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../zope-configuration/zope-configuration-4.4.1-r1.ebuild | 10 ++++++----
13 1 file changed, 6 insertions(+), 4 deletions(-)
14
15 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
16 index 5f6facdf2553..c83af620f922 100644
17 --- a/dev-python/zope-configuration/zope-configuration-4.4.1-r1.ebuild
18 +++ b/dev-python/zope-configuration/zope-configuration-4.4.1-r1.ebuild
19 @@ -44,10 +44,12 @@ python_compile() {
20 }
21
22 python_test() {
23 - cd "${BUILD_DIR}/install$(python_get_sitedir)/zope" || die
24 - cat > __init__.py <<-EOF || die
25 + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
26 + # this is needed to keep the tests working while
27 + # dev-python/namespace-zope is still installed
28 + cat > zope/__init__.py <<-EOF || die
29 __path__ = __import__('pkgutil').extend_path(__path__, __name__)
30 EOF
31 - eunittest -s configuration/tests
32 - rm __init__.py || die
33 + eunittest
34 + rm zope/__init__.py || die
35 }