From b3e87bbd648d76b89cccca089b09f82a1f4063f6 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 4 Apr 2021 19:31:12 -0400 Subject: fix: be intelligent about 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 --- tests/test_debug.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/test_debug.py') 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: -- cgit v1.2.1