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/pytest/
Date: Wed, 13 May 2020 09:03:15
Message-Id: 1589360579.6025336afa774618665d597e273221ba89cd5c31.mgorny@gentoo
1 commit: 6025336afa774618665d597e273221ba89cd5c31
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 13 08:30:53 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed May 13 09:02:59 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6025336a
7
8 dev-python/pytest: Fix tests on initial install
9
10 Closes: https://bugs.gentoo.org/715318
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 dev-python/pytest/pytest-4.6.10.ebuild | 4 +++-
14 1 file changed, 3 insertions(+), 1 deletion(-)
15
16 diff --git a/dev-python/pytest/pytest-4.6.10.ebuild b/dev-python/pytest/pytest-4.6.10.ebuild
17 index eb17b00753d..ebd5ee83815 100644
18 --- a/dev-python/pytest/pytest-4.6.10.ebuild
19 +++ b/dev-python/pytest/pytest-4.6.10.ebuild
20 @@ -3,6 +3,7 @@
21
22 EAPI=7
23
24 +DISTUTILS_USE_SETUPTOOLS=rdepend
25 PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
26
27 inherit distutils-r1
28 @@ -41,7 +42,6 @@ RDEPEND="
29
30 # flake cause a number of tests to fail
31 DEPEND="
32 - dev-python/setuptools[${PYTHON_USEDEP}]
33 test? (
34 ${RDEPEND}
35 dev-python/argcomplete[${PYTHON_USEDEP}]
36 @@ -72,6 +72,8 @@ python_prepare_all() {
37 }
38
39 python_test() {
40 + distutils_install_for_testing
41 +
42 # In v4.1.1, pytest started being picky about its own verbosity options.
43 # running pytest on itself with -vv made 3 tests fail. This is why we don't
44 # have it below.