diff options
Diffstat (limited to 'coverage/annotate.py')
-rw-r--r-- | coverage/annotate.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/coverage/annotate.py b/coverage/annotate.py index 3cbe240..3130c00 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: |