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/python-dbusmock/
Date: Thu, 01 Dec 2022 07:09:29
Message-Id: 1669878557.11d5363cf50afbdbe63f18d2c6042fe83d3e9049.mgorny@gentoo
1 commit: 11d5363cf50afbdbe63f18d2c6042fe83d3e9049
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 1 06:56:34 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 1 07:09:17 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11d5363c
7
8 dev-python/python-dbusmock: Use pytest
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/python-dbusmock/python-dbusmock-0.28.6-r1.ebuild | 11 ++++++-----
13 1 file changed, 6 insertions(+), 5 deletions(-)
14
15 diff --git a/dev-python/python-dbusmock/python-dbusmock-0.28.6-r1.ebuild b/dev-python/python-dbusmock/python-dbusmock-0.28.6-r1.ebuild
16 index f50299fe3a38..c43a7378ca54 100644
17 --- a/dev-python/python-dbusmock/python-dbusmock-0.28.6-r1.ebuild
18 +++ b/dev-python/python-dbusmock/python-dbusmock-0.28.6-r1.ebuild
19 @@ -28,13 +28,14 @@ RDEPEND="
20 dev-python/pygobject:3[${PYTHON_USEDEP}]
21 "
22
23 -distutils_enable_tests unittest
24 +distutils_enable_tests pytest
25
26 -src_prepare() {
27 - # needed for unittest discovery
28 - > tests/__init__.py || die
29 +EPYTEST_IGNORE=(
30 # linter tests, fragile to newer linter versions
31 - rm tests/test_code.py || die
32 + tests/test_code.py
33 +)
34 +
35 +src_prepare() {
36 # dev-python/dbus-python uses autotools, so no .dist-info there
37 sed -i '/dbus-python/d' pyproject.toml setup.cfg || die