Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pillow/
Date: Wed, 02 Jan 2019 01:56:55
Message-Id: 1546393003.a2c8bad7e9615877c9007a19d65718a3a1b09c9b.vdupras@gentoo
1 commit: a2c8bad7e9615877c9007a19d65718a3a1b09c9b
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 2 01:36:43 2019 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 2 01:36:43 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2c8bad7
7
8 dev-python/pillow: fix broken tests
9
10 Starting with pytest 3.10, Pillow test suite breaks badly at collect
11 time. It seems to be related to the way pytest was invoked. Bringing
12 invocation closer to upstream's, that is, without specifying test unit
13 files, makes test run alright.
14
15 I fixed the invocation in 5.3 and, since 5.2 is already stabilized,
16 added a version constraint on pytest. The newly bumped v5.4 already has
17 a correct pytest invocation.
18
19 Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
20 Package-Manager: Portage-2.3.51, Repoman-2.3.11
21
22 dev-python/pillow/pillow-5.2.0.ebuild | 4 ++--
23 dev-python/pillow/pillow-5.3.0.ebuild | 4 ++--
24 2 files changed, 4 insertions(+), 4 deletions(-)
25
26 diff --git a/dev-python/pillow/pillow-5.2.0.ebuild b/dev-python/pillow/pillow-5.2.0.ebuild
27 index 5099bb0a277..8a22a6354a3 100644
28 --- a/dev-python/pillow/pillow-5.2.0.ebuild
29 +++ b/dev-python/pillow/pillow-5.2.0.ebuild
30 @@ -1,4 +1,4 @@
31 -# Copyright 1999-2018 Gentoo Authors
32 +# Copyright 1999-2019 Gentoo Authors
33 # Distributed under the terms of the GNU General Public License v2
34
35 EAPI=7
36 @@ -39,7 +39,7 @@ DEPEND="${RDEPEND}
37 dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
38 )
39 test? (
40 - dev-python/pytest[${PYTHON_USEDEP}]
41 + <dev-python/pytest-3.10[${PYTHON_USEDEP}]
42 media-gfx/imagemagick[png]
43 )
44 "
45
46 diff --git a/dev-python/pillow/pillow-5.3.0.ebuild b/dev-python/pillow/pillow-5.3.0.ebuild
47 index d05df3d9e90..a878b774c31 100644
48 --- a/dev-python/pillow/pillow-5.3.0.ebuild
49 +++ b/dev-python/pillow/pillow-5.3.0.ebuild
50 @@ -1,4 +1,4 @@
51 -# Copyright 1999-2018 Gentoo Authors
52 +# Copyright 1999-2019 Gentoo Authors
53 # Distributed under the terms of the GNU General Public License v2
54
55 EAPI=7
56 @@ -75,7 +75,7 @@ python_compile_all() {
57 python_test() {
58 "${PYTHON}" selftest.py --installed || die "selftest failed with ${EPYTHON}"
59 # no:relaxed: pytest-relaxed plugin make our tests fail. deactivate if installed
60 - virtx pytest -vx Tests/test_*.py -p no:relaxed
61 + virtx pytest -vv -p no:relaxed
62 }
63
64 python_install() {