summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Sautier <sbraz@gentoo.org>2018-07-18 00:32:09 +0200
committerLouis Sautier <sbraz@gentoo.org>2018-07-18 00:38:34 +0200
commit79489db15fe3fc6dd7df1cd60669ab617dfbac64 (patch)
treeaca16784c984180c619b0dbd4e25bdec9473fbf4 /dev-python
parentapp-crypt/yubikey-manager-qt: bump to 0.5.2 (diff)
downloadgentoo-79489db15fe3fc6dd7df1cd60669ab617dfbac64.tar.gz
gentoo-79489db15fe3fc6dd7df1cd60669ab617dfbac64.tar.bz2
gentoo-79489db15fe3fc6dd7df1cd60669ab617dfbac64.zip
dev-python/more-itertools: don't run tests from ${S}
It makes more sense to run tests from the build directory. Bug: https://bugs.gentoo.org/661412 Package-Manager: Portage-2.3.43, Repoman-2.3.10
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/more-itertools/more-itertools-4.2.0.ebuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/dev-python/more-itertools/more-itertools-4.2.0.ebuild b/dev-python/more-itertools/more-itertools-4.2.0.ebuild
index fe30c3ead7fc..fc733c79dd01 100644
--- a/dev-python/more-itertools/more-itertools-4.2.0.ebuild
+++ b/dev-python/more-itertools/more-itertools-4.2.0.ebuild
@@ -37,6 +37,7 @@ python_compile_all() {
python_test() {
# Avoid ImportMismatchError, see https://bugs.gentoo.org/661412
- PYTHONPATH=. py.test --doctest-modules more_itertools \
+ cd "${BUILD_DIR}/lib" || die
+ py.test --doctest-modules more_itertools \
|| die "tests fail with ${EPYTHON}"
}