diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2014-05-18 18:11:59 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-05-18 18:11:59 -0400 |
commit | 7c003bb14493f170fca65e2b39d3c962635ad064 (patch) | |
tree | 377b57e0d34d441edbb81435d928113b4173d59d | |
parent | e4d3d19a4192536d35e419468354bd8d14904098 (diff) | |
download | python-coveragepy-git-7c003bb14493f170fca65e2b39d3c962635ad064.tar.gz |
Include all files when annotating, not just relative ones. #57
-rw-r--r-- | CHANGES.txt | 4 | ||||
-rw-r--r-- | coverage/annotate.py | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 1b7295be..491c853b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -14,9 +14,13 @@ Change history for Coverage.py - The XML report will now create the output directory if need be, fixing `issue 285`_. Thanks Chris Rose. +- The annotate command will now annotate all files, not just ones relative to + the current directory, fixing `issue 57`_. + - The coverage module no longer causes deprecation warnings on Python 3.4 by importing the imp module, fixing `issue 305`_. +.. _issue 57: https://bitbucket.org/ned/coveragepy/issue/57/annotate-command-fails-to-annotate-many .. _issue 94: https://bitbucket.org/ned/coveragepy/issue/94/coverage-xml-doesnt-produce-sources .. _issue 285: https://bitbucket.org/ned/coveragepy/issue/285/xml-report-fails-if-output-file-directory .. _issue 305: https://bitbucket.org/ned/coveragepy/issue/305/pendingdeprecationwarning-the-imp-module diff --git a/coverage/annotate.py b/coverage/annotate.py index 19777eaf..8074df91 100644 --- a/coverage/annotate.py +++ b/coverage/annotate.py @@ -47,9 +47,6 @@ 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: |