commit: 8779b842df8e06a07704874671631d3f100d75df Author: Alfred Wingate <parona <AT> protonmail <DOT> com> AuthorDate: Sun Oct 8 09:38:00 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Tue Oct 10 05:10:16 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8779b842
dev-python/pytest-cov: deselect problematic subprocess tests Bug: https://bugs.gentoo.org/889886 Signed-off-by: Alfred Wingate <parona <AT> protonmail.com> Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/pytest-cov/pytest-cov-4.1.0.ebuild | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/dev-python/pytest-cov/pytest-cov-4.1.0.ebuild b/dev-python/pytest-cov/pytest-cov-4.1.0.ebuild index 22dcfe4fdd43..c9fde07cf848 100644 --- a/dev-python/pytest-cov/pytest-cov-4.1.0.ebuild +++ b/dev-python/pytest-cov/pytest-cov-4.1.0.ebuild @@ -49,6 +49,15 @@ python_test() { local EPYTEST_DESELECT=( # attempts to install packages via pip (network) tests/test_pytest_cov.py::test_dist_missing_data + # TODO: pytest-cov.pth breaks importing coverage + # https://bugs.gentoo.org/889886 + tests/test_pytest_cov.py::test_append_coverage_subprocess + tests/test_pytest_cov.py::test_central_subprocess_change_cwd + tests/test_pytest_cov.py::test_central_subprocess_change_cwd_with_pythonpath + tests/test_pytest_cov.py::test_central_subprocess + tests/test_pytest_cov.py::test_dist_subprocess_collocated + tests/test_pytest_cov.py::test_dist_subprocess_not_collocated + tests/test_pytest_cov.py::test_subprocess_with_path_aliasing # TODO tests/test_pytest_cov.py::test_contexts tests/test_pytest_cov.py::test_cleanup_on_sigterm @@ -57,18 +66,5 @@ python_test() { tests/test_pytest_cov.py::test_cleanup_on_sigterm_sig_ign ) - local src=$( - "${EPYTHON}" -c "import coverage as m; print(*m.__path__)" || die - ) - # TODO: why do we need to do that?! - # https://github.com/pytest-dev/pytest-cov/issues/517 - ln -s "${src}/coverage" \ - "${BUILD_DIR}/install$(python_get_sitedir)/coverage" || die - - nonfatal epytest - local ret=${?} - - rm "${BUILD_DIR}/install$(python_get_sitedir)/coverage" || die - - [[ ${ret} -ne 0 ]] && die "epytest failed on ${EPYTHON}" + epytest }
