Bug report
Bug description:
The Python Developer’s Guide says:
In order to create a HTML report you can install lcov.
Unfortunately, this doesn't work with a modern version of the lcov: e.g. first I got error about missing --path option. It "works for me" (with some warnings) on the patch:
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 2b34b009fd7..20b895d488a 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -917,7 +917,6 @@ coverage-lcov:
@lcov $(COVERAGE_LCOV_OPTIONS) --capture \
--directory $(abs_builddir) \
--base-directory $(realpath $(abs_builddir)) \
- --path $(realpath $(abs_srcdir)) \
--output-file $(COVERAGE_INFO)
@ # remove 3rd party modules, system headers and internal files with
@ # debug, test or dummy functions.
@@ -931,8 +930,11 @@ coverage-lcov:
'/usr/include/*' \
'/usr/local/include/*' \
'/usr/lib/gcc/*' \
+ --ignore-errors inconsistent \
+ --ignore-errors unused \
--output-file $(COVERAGE_INFO)
@genhtml $(COVERAGE_INFO) \
+ --ignore-errors inconsistent \
--output-directory $(COVERAGE_REPORT) \
$(COVERAGE_REPORT_OPTIONS)
@echo
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Bug report
Bug description:
The Python Developer’s Guide says:
Unfortunately, this doesn't work with a modern version of the lcov: e.g. first I got error about missing
--pathoption. It "works for me" (with some warnings) on the patch:CPython versions tested on:
CPython main branch
Operating systems tested on:
No response