diff options
author | Alfred Wingate <parona@protonmail.com> | 2023-10-08 12:38:00 +0300 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-10-10 07:10:16 +0200 |
commit | 8779b842df8e06a07704874671631d3f100d75df (patch) | |
tree | d52b1a2f8d165b6efae93821dafb4fce8346128c /dev-python/pytest-cov | |
parent | dev-python/process-tests: enable py3.12 (diff) | |
download | gentoo-8779b842df8e06a07704874671631d3f100d75df.tar.gz gentoo-8779b842df8e06a07704874671631d3f100d75df.tar.bz2 gentoo-8779b842df8e06a07704874671631d3f100d75df.zip |
dev-python/pytest-cov: deselect problematic subprocess tests
Bug: https://bugs.gentoo.org/889886
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pytest-cov')
-rw-r--r-- | dev-python/pytest-cov/pytest-cov-4.1.0.ebuild | 24 |
1 files 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 } |