Skip to content

Comments

test: Find source directory relative to tests rather than coverage#2028

Merged
nedbat merged 1 commit intocoveragepy:masterfrom
mgorny:all-source-test-dir
Aug 11, 2025
Merged

test: Find source directory relative to tests rather than coverage#2028
nedbat merged 1 commit intocoveragepy:masterfrom
mgorny:all-source-test-dir

Conversation

@mgorny
Copy link
Contributor

@mgorny mgorny commented Aug 11, 2025

Use the path to the tests/helpers.py module itself rather than the coverage package to determine what the source directory is. The former is always imported from the source tree, while the latter does not necessarily have to -- in particular, in Gentoo we are installing it to a temporary directory to keep the source directory clean of artifacts.

Use the path to the `tests/helpers.py` module itself rather than
the `coverage` package to determine what the source directory is.
The former is always imported from the source tree, while the latter
does not necessarily have to -- in particular, in Gentoo we are
installing it to a temporary directory to keep the source directory
clean of artifacts.

Signed-off-by: Michał Górny <[email protected]>
@mgorny mgorny force-pushed the all-source-test-dir branch from c8edeaf to 1bbb068 Compare August 11, 2025 03:57
@nedbat
Copy link
Member

nedbat commented Aug 11, 2025

Thanks for keeping me honest :D

@nedbat nedbat merged commit 62434e7 into coveragepy:master Aug 11, 2025
80 of 81 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants