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/clikit/
Date: Fri, 19 Aug 2022 10:49:03
Message-Id: 1660906132.fd45c6cfbd4205563bb19e710cf5963423c65270.mgorny@gentoo
1 commit: fd45c6cfbd4205563bb19e710cf5963423c65270
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 19 10:42:11 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 19 10:48:52 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd45c6cf
7
8 dev-python/clikit: Fix test failures
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/clikit/clikit-0.6.2.ebuild | 14 ++++++++------
13 1 file changed, 8 insertions(+), 6 deletions(-)
14
15 diff --git a/dev-python/clikit/clikit-0.6.2.ebuild b/dev-python/clikit/clikit-0.6.2.ebuild
16 index 8bb676a6f1ba..200eb8b1216e 100644
17 --- a/dev-python/clikit/clikit-0.6.2.ebuild
18 +++ b/dev-python/clikit/clikit-0.6.2.ebuild
19 @@ -4,7 +4,7 @@
20 EAPI=7
21
22 DISTUTILS_USE_SETUPTOOLS=pyproject.toml
23 -PYTHON_COMPAT=( python3_{7..10} )
24 +PYTHON_COMPAT=( python3_{8..10} )
25 inherit distutils-r1
26
27 DESCRIPTION="Group of utilities to build beautiful and testable command line interfaces"
28 @@ -27,9 +27,11 @@ BDEPEND="
29
30 distutils_enable_tests pytest
31
32 -python_prepare_all() {
33 - # skip failing test
34 - rm tests/utils/test_terminal.py || die
35 -
36 - distutils-r1_python_prepare_all
37 +python_test() {
38 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
39 + local EPYTEST_DESELECT=(
40 + # skip failing test
41 + tests/utils/test_terminal.py
42 + )
43 + epytest
44 }