diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-04-11 17:16:09 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-04-11 17:24:06 -0400 |
commit | 70ba38090b47d4dc0bd88fa39b6b1a5424d4793d (patch) | |
tree | 43af0e5a21c18a323d190a094360e262db8d01c2 | |
parent | 9c47249d13326de86b910d0dcc10410210585e1e (diff) | |
download | python-coveragepy-git-70ba38090b47d4dc0bd88fa39b6b1a5424d4793d.tar.gz |
fix: restore metacov functioning
The check for coverage files inside the --source check disables our
metacoverage. Removing it means that coverage files will still not be
measured, but the reason will be given as "is third-party" rather than
"is part of coverage.py," which is a small price to pay.
-rw-r--r-- | coverage/inorout.py | 2 | ||||
-rw-r--r-- | tests/test_process.py | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/coverage/inorout.py b/coverage/inorout.py index 93dbef0e..b023db0b 100644 --- a/coverage/inorout.py +++ b/coverage/inorout.py @@ -429,8 +429,6 @@ class InOrOut(object): ok = True if not ok: return extra + "falls outside the --source spec" - if self.cover_match.match(filename): - return "inside --source, but is part of coverage.py" if not self.source_in_third: if self.third_match.match(filename): return "inside --source, but is third-party" diff --git a/tests/test_process.py b/tests/test_process.py index ef3bbedc..2447cffe 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -1749,7 +1749,7 @@ class VirtualenvTest(CoverageTest): debug_out = self.get_trace_output() assert re_lines( debug_out, - r"^Not tracing .*\bexecfile.py': inside --source, but is part of coverage.py" + r"^Not tracing .*\bexecfile.py': inside --source, but is third-party" ) assert re_lines(debug_out, r"^Tracing .*\bmyproduct.py") assert re_lines( |