diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-04-04 19:31:12 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-04-10 14:15:45 -0400 |
commit | b3e87bbd648d76b89cccca089b09f82a1f4063f6 (patch) | |
tree | 3d7cd073046e003b7e404eeefff004d2eac3655b /tests/test_debug.py | |
parent | dc48d27937d4eb0ec5072b97dce54e7556618f8e (diff) | |
download | python-coveragepy-git-nedbat/virtualenv-detection-905.tar.gz |
fix: be intelligent about third-party packagesnedbat/virtualenv-detection-905
Avoid measuring code located where third-party packages get installed.
We have to take care to measure --source code even if it is installed in
a third-party location.
This also fixes #905, coverage generating warnings about coverage being
imported when it will be measured.
https://github.com/nedbat/coveragepy/issues/876
https://github.com/nedbat/coveragepy/issues/905
Diffstat (limited to 'tests/test_debug.py')
-rw-r--r-- | tests/test_debug.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_debug.py b/tests/test_debug.py index 55001c96..cb83e519 100644 --- a/tests/test_debug.py +++ b/tests/test_debug.py @@ -183,8 +183,9 @@ class DebugTraceTest(CoverageTest): out_lines = self.f1_debug_output(["sys"]) labels = """ - version coverage cover_paths pylib_paths tracer configs_attempted config_file - configs_read data_file python platform implementation executable + version coverage coverage_paths stdlib_paths third_party_paths + tracer configs_attempted config_file configs_read data_file + python platform implementation executable pid cwd path environment command_line cover_match pylib_match """.split() for label in labels: |