commit: 62b8bbfe52335c5110f52409921c6b0c349f51ff Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Thu Aug 22 18:50:30 2024 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Thu Aug 22 18:51:07 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62b8bbfe
dev-python/pyyaml: use pytest for tests See-Also: https://github.com/yaml/pyyaml/pull/820 Closes: https://bugs.gentoo.org/927523 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> dev-python/pyyaml/pyyaml-6.0.2.ebuild | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dev-python/pyyaml/pyyaml-6.0.2.ebuild b/dev-python/pyyaml/pyyaml-6.0.2.ebuild index 9be8de2241fe..685256197d60 100644 --- a/dev-python/pyyaml/pyyaml-6.0.2.ebuild +++ b/dev-python/pyyaml/pyyaml-6.0.2.ebuild @@ -38,6 +38,8 @@ BDEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] " +distutils_enable_tests pytest + src_configure() { export PYYAML_FORCE_CYTHON=1 } @@ -47,11 +49,7 @@ python_test() { local -x PYTHONPATH="tests/legacy_tests:${PYTHONPATH}" # upstream indicates testing may pollute the package cp -a "${BUILD_DIR}"/{install,test} || die - "${BUILD_DIR}"/test/usr/bin/python <<-EOF || die "Tests failed on ${EPYTHON}" - import sys - import test_all - sys.exit(0 if test_all.main() else 1) - EOF + epytest } python_install_all() {
