From 11d5363cf50afbdbe63f18d2c6042fe83d3e9049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 1 Dec 2022 07:56:34 +0100 Subject: [PATCH] dev-python/python-dbusmock: Use pytest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- .../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 f50299fe3a38b..c43a7378ca540 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 + +EPYTEST_IGNORE=( + # linter tests, fragile to newer linter versions + tests/test_code.py +) src_prepare() { - # needed for unittest discovery - > tests/__init__.py || die - # linter tests, fragile to newer linter versions - rm tests/test_code.py || die # dev-python/dbus-python uses autotools, so no .dist-info there sed -i '/dbus-python/d' pyproject.toml setup.cfg || die