Gentoo Archives: gentoo-commits

From: Louis Sautier <sbraz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/geventhttpclient/
Date: Wed, 24 Oct 2018 09:20:40
Message-Id: 1540372815.6c76f6521560c1b8f14eb034b2f4e3ab9611ff6b.sbraz@gentoo
1 commit: 6c76f6521560c1b8f14eb034b2f4e3ab9611ff6b
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 24 09:13:14 2018 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 24 09:20:15 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c76f652
7
8 dev-python/geventhttpclient: fix ImportError while collecting tests
9
10 Closes: https://bugs.gentoo.org/667758
11 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
12 Package-Manager: Portage-2.3.51, Repoman-2.3.11
13
14 dev-python/geventhttpclient/geventhttpclient-1.3.1-r1.ebuild | 6 ++++--
15 1 file changed, 4 insertions(+), 2 deletions(-)
16
17 diff --git a/dev-python/geventhttpclient/geventhttpclient-1.3.1-r1.ebuild b/dev-python/geventhttpclient/geventhttpclient-1.3.1-r1.ebuild
18 index bbedb9e89a2..a16291b3b01 100644
19 --- a/dev-python/geventhttpclient/geventhttpclient-1.3.1-r1.ebuild
20 +++ b/dev-python/geventhttpclient/geventhttpclient-1.3.1-r1.ebuild
21 @@ -1,4 +1,4 @@
22 -# Copyright 1999-2018 Gentoo Foundation
23 +# Copyright 1999-2018 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI=7
27 @@ -36,7 +36,9 @@ python_prepare_all() {
28
29 python_test() {
30 # Ignore tests which require network access
31 - py.test src/geventhttpclient/tests --ignore \
32 + # Append to sys.path to avoid ImportError
33 + # https://bugs.gentoo.org/667758
34 + pytest --import-mode=append -vv src/geventhttpclient/tests --ignore \
35 src/geventhttpclient/tests/test_client.py || \
36 die "Tests failed with ${EPYTHON}"
37 }