dev-python/geventhttpclient: fix ImportError while collecting tests
authorLouis Sautier <sbraz@gentoo.org>
Wed, 24 Oct 2018 09:13:14 +0000 (11:13 +0200)
committerLouis Sautier <sbraz@gentoo.org>
Wed, 24 Oct 2018 09:20:15 +0000 (11:20 +0200)
Closes: https://bugs.gentoo.org/667758
Signed-off-by: Louis Sautier <sbraz@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

dev-python/geventhttpclient/geventhttpclient-1.3.1-r1.ebuild

index bbedb9e89a28be4e1d82663d8cc6a89dd1643286..a16291b3b0119063e724daf94ac4bb8e1e40b28b 100644 (file)
@@ -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
@@ -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}"
 }