From 51a9a5980af3b4762d09c4aa4551d370a1b8b9a8 Mon Sep 17 00:00:00 2001 From: Ramiro Morales Date: Sun, 25 Aug 2013 22:29:43 -0300 Subject: [PATCH] Made coverage ignore files without associated source code. This only affests reporting not data collection and allows coverage.py to succesfully finish the generation of e.g. the HTML report. Cases of code whose execution data is collected during the run phase but for which no associated source code files can be found at the reporting phase include tests with egg files and Python module files created at test execution-time. --- tests/.coveragerc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/.coveragerc b/tests/.coveragerc index 1b4c087f147..f411b8055ef 100644 --- a/tests/.coveragerc +++ b/tests/.coveragerc @@ -1,5 +1,8 @@ [run] omit = */django/contrib/*/tests*,*/django/utils/unittest*,*/django/utils/importlib.py,*/django/test/_doctest.py,*/django/core/servers/fastcgi.py,*/django/utils/autoreload.py,*/django/utils/dictconfig.py +[report] +ignore_errors = True + [html] directory = coverage_html