commit:     9cd9122b917025bf51694d5ed45e6bead8747be6
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  1 18:16:46 2022 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Tue Feb  1 18:43:17 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cd9122b

dev-python/pyamg: fix test calls

Use better way to handle pytest C errors

Fixes: 31f75efcb11aefe2502f36facf2f1c329b022233
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-python/pyamg/pyamg-4.2.1.ebuild | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/dev-python/pyamg/pyamg-4.2.1.ebuild 
b/dev-python/pyamg/pyamg-4.2.1.ebuild
index cdcc0310a2cb..971ced744f5c 100644
--- a/dev-python/pyamg/pyamg-4.2.1.ebuild
+++ b/dev-python/pyamg/pyamg-4.2.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -32,7 +32,6 @@ distutils_enable_tests pytest
 export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
 
 python_test() {
-       cp -r -l -n pyamg "${BUILD_DIR}/lib" || die
-       cd "${BUILD_DIR}/lib" || die
-       epytest
+       cd "${T}" || die
+       epytest --pyargs pyamg
 }

Reply via email to