From ecf5b0dfcf5b15d8325666beed0c101efc35ec23 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 26 Sep 2009 20:08:24 -0400 Subject: HTML report includes non-relative code units also. Fixes issue #11, though the paths displayed in the HTML are kind of heinous. --- coverage/annotate.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'coverage/annotate.py') diff --git a/coverage/annotate.py b/coverage/annotate.py index 3cbe2407..3130c001 100644 --- a/coverage/annotate.py +++ b/coverage/annotate.py @@ -43,6 +43,9 @@ class AnnotateReporter(Reporter): `cu` is the CodeUnit for the file to annotate. """ + if not cu.relative: + return + filename = cu.filename source = cu.source_file() if self.directory: -- cgit v1.2.1