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/pluggy/, dev-python/pluggy/files/
Date: Sun, 27 Jan 2019 19:34:34
Message-Id: 1548617650.3d810e85e598bb0374d2b3fa2c3d8b9eadea7e96.vdupras@gentoo
1 commit: 3d810e85e598bb0374d2b3fa2c3d8b9eadea7e96
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 27 19:34:10 2019 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 27 19:34:10 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d810e85
7
8 dev-python/pluggy: disable failing test under pypy3
9
10 Closes: https://bugs.gentoo.org/648672
11 Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
12 Package-Manager: Portage-2.3.51, Repoman-2.3.11
13
14 .../files/pluggy-0.7.1-disable-broken-tests.patch | 19 +++++++++++++++++++
15 dev-python/pluggy/pluggy-0.7.1.ebuild | 6 +++++-
16 2 files changed, 24 insertions(+), 1 deletion(-)
17
18 diff --git a/dev-python/pluggy/files/pluggy-0.7.1-disable-broken-tests.patch b/dev-python/pluggy/files/pluggy-0.7.1-disable-broken-tests.patch
19 new file mode 100644
20 index 00000000000..578b56ce346
21 --- /dev/null
22 +++ b/dev-python/pluggy/files/pluggy-0.7.1-disable-broken-tests.patch
23 @@ -0,0 +1,19 @@
24 +diff --git a/testing/test_helpers.py b/testing/test_helpers.py
25 +index 846b0a1..89a52b1 100644
26 +--- a/testing/test_helpers.py
27 ++++ b/testing/test_helpers.py
28 +@@ -1,3 +1,4 @@
29 ++import platform
30 + from pluggy.hooks import varnames
31 + from pluggy.manager import _formatdef
32 +
33 +@@ -27,6 +28,9 @@ def test_varnames_default():
34 +
35 +
36 + def test_varnames_class():
37 ++ # fails under pypy3
38 ++ if platform.python_implementation() == 'PyPy':
39 ++ return
40 + class C(object):
41 + def __init__(self, x):
42 + pass
43
44 diff --git a/dev-python/pluggy/pluggy-0.7.1.ebuild b/dev-python/pluggy/pluggy-0.7.1.ebuild
45 index 2ccc546cb18..dd9526ce4e7 100644
46 --- a/dev-python/pluggy/pluggy-0.7.1.ebuild
47 +++ b/dev-python/pluggy/pluggy-0.7.1.ebuild
48 @@ -1,4 +1,4 @@
49 -# Copyright 1999-2018 Gentoo Authors
50 +# Copyright 1999-2019 Gentoo Authors
51 # Distributed under the terms of the GNU General Public License v2
52
53 EAPI=7
54 @@ -23,6 +23,10 @@ DEPEND="${RDEPEND}
55 dev-python/pytest[${PYTHON_USEDEP}]
56 )"
57
58 +PATCHES=(
59 + "${FILESDIR}/${PN}-0.7.1-disable-broken-tests.patch"
60 +)
61 +
62 python_test() {
63 PYTHONPATH="${BUILD_DIR}/lib" pytest -v || die "tests failed with ${EPYTHON}"
64 }