diff options
author | Manuel Jacob <me@manueljacob.de> | 2023-02-21 03:03:55 +0100 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-03-15 05:48:29 -0400 |
commit | 4574ecf128ae51c2b950f6c9cb2486b86f5354e7 (patch) | |
tree | 80db11484a335c1d8ebc558492c0915a3db4d515 /coverage/bytecode.py | |
parent | dd7959dbf4eede4d2f2254f607113e45071cc8d3 (diff) | |
download | python-coveragepy-git-4574ecf128ae51c2b950f6c9cb2486b86f5354e7.tar.gz |
fix: don't measure all third-party packages if source is in third-party location
There is logic to not measure third-party packages inside configured sources. However, when a (i.e. another) configured source was inside a third-party location, this logic was previously disabled completely.
This caused a problem if a virtual env is set up inside a configured source directory and a configured source package gets installed inside the virtual env. Previously in this case, coverage was measured for all files in the virtual env for the reason described in the previous paragraph.
This commit changes the code to collect all configured source directories inside third-party locations and disable coverage for code in third-party locations only if its not in one of these collected source directories.
Diffstat (limited to 'coverage/bytecode.py')
0 files changed, 0 insertions, 0 deletions