Skip to content

Commit

Permalink
dev-python/geventhttpclient: fix ImportError while collecting tests
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/667758
Signed-off-by: Louis Sautier <[email protected]>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
  • Loading branch information
sbraz committed Oct 24, 2018
1 parent 37e657a commit 6c76f65
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dev-python/geventhttpclient/geventhttpclient-1.3.1-r1.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
Expand Down Expand Up @@ -36,7 +36,9 @@ python_prepare_all() {

python_test() {
# Ignore tests which require network access
py.test src/geventhttpclient/tests --ignore \
# Append to sys.path to avoid ImportError
# https://bugs.gentoo.org/667758
pytest --import-mode=append -vv src/geventhttpclient/tests --ignore \
src/geventhttpclient/tests/test_client.py || \
die "Tests failed with ${EPYTHON}"
}

0 comments on commit 6c76f65

Please sign in to comment.