diff options
| author | Michał Górny <mgorny@gentoo.org> | 2023-01-05 17:55:51 +0100 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2023-01-05 17:56:01 +0100 |
| commit | e78205a6a55eb2be760a3544a0d331e5e9766b39 (patch) | |
| tree | eebf911ae57b25f5d5defbbf884f318589b99080 /dev-python | |
| parent | 2c6dda5c3921fcb79a072c9e92e248c9c6d40869 (diff) | |
| download | gentoo-e78205a6a55eb2be760a3544a0d331e5e9766b39.tar.gz gentoo-e78205a6a55eb2be760a3544a0d331e5e9766b39.tar.bz2 gentoo-e78205a6a55eb2be760a3544a0d331e5e9766b39.zip | |
dev-python/pytest-cov: Fix linking coverage for tests on Prefix
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/pytest-cov/pytest-cov-4.0.0-r1.ebuild | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dev-python/pytest-cov/pytest-cov-4.0.0-r1.ebuild b/dev-python/pytest-cov/pytest-cov-4.0.0-r1.ebuild index 50a1d98287f1..56d8ce2bc1bb 100644 --- a/dev-python/pytest-cov/pytest-cov-4.0.0-r1.ebuild +++ b/dev-python/pytest-cov/pytest-cov-4.0.0-r1.ebuild @@ -53,9 +53,12 @@ python_test() { tests/test_pytest_cov.py::test_contexts ) + 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 "${BROOT}$(python_get_sitedir)/coverage" \ + ln -s "${src}/coverage" \ "${BUILD_DIR}/install$(python_get_sitedir)/coverage" || die epytest |
