summaryrefslogtreecommitdiff
path: root/tests/test_debug.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-04-04 19:31:12 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-04-10 18:41:58 -0400
commit0285af966a3942d8bd63489bd285328e96221126 (patch)
tree2646fa7ce2fc7e8fab4febfd729d874ed0c51cea /tests/test_debug.py
parentdc48d27937d4eb0ec5072b97dce54e7556618f8e (diff)
downloadpython-coveragepy-git-0285af966a3942d8bd63489bd285328e96221126.tar.gz
fix: don't measure third-party packages
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.py5
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: