diff options
Diffstat (limited to 'test/coverage_coverage.py')
-rw-r--r-- | test/coverage_coverage.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/coverage_coverage.py b/test/coverage_coverage.py index ca10edc3..b8c2a515 100644 --- a/test/coverage_coverage.py +++ b/test/coverage_coverage.py @@ -9,6 +9,10 @@ if os.path.exists(HTML_DIR): shutil.rmtree(HTML_DIR) cov = coverage.coverage() +# Cheap trick: the coverage code itself is excluded from measurement, but if +# we clobber the cover_prefix in the coverage object, we can defeat the +# self-detection. +cov.cover_prefix = "Please measure coverage.py!" cov.erase() cov.start() |