diff options
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/coverage/control.py b/coverage/control.py index b7dfa0a8..05a75031 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -198,6 +198,14 @@ class coverage(object): # can't do anything with the data later anyway. return False + if filename.endswith(".html"): + # Jinja and maybe other templating systems compile templates into + # Python code, but use the template filename as the filename in + # the compiled code. Of course, those filenames are useless later + # so don't bother collecting. TODO: How should we really separate + # out good file extensions from bad? + return False + self._check_for_packages() # Compiled Python files have two filenames: frame.f_code.co_filename is |