commit:     11d5363cf50afbdbe63f18d2c6042fe83d3e9049
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  1 06:56:34 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Dec  1 07:09:17 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11d5363c

dev-python/python-dbusmock: Use pytest

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/python-dbusmock/python-dbusmock-0.28.6-r1.ebuild | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

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
index f50299fe3a38..c43a7378ca54 100644
--- a/dev-python/python-dbusmock/python-dbusmock-0.28.6-r1.ebuild
+++ b/dev-python/python-dbusmock/python-dbusmock-0.28.6-r1.ebuild
@@ -28,13 +28,14 @@ RDEPEND="
        dev-python/pygobject:3[${PYTHON_USEDEP}]
 "
 
-distutils_enable_tests unittest
+distutils_enable_tests pytest
 
-src_prepare() {
-       # needed for unittest discovery
-       > tests/__init__.py || die
+EPYTEST_IGNORE=(
        # linter tests, fragile to newer linter versions
-       rm tests/test_code.py || die
+       tests/test_code.py
+)
+
+src_prepare() {
        # dev-python/dbus-python uses autotools, so no .dist-info there
        sed -i '/dbus-python/d' pyproject.toml setup.cfg || die
 

Reply via email to