diff options
author | David Szotten <davidszotten@gmail.com> | 2019-12-20 16:03:09 +0000 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-12-21 10:28:40 -0500 |
commit | ade1f2c534d1b85c8b465ce302ab345b316ec3ef (patch) | |
tree | 427add523f3760d6eba40b67e7f5e93dda0c8a26 /coverage/html.py | |
parent | 7dc37728d3ddddd12115bb94c58ad0dc67dcfb3e (diff) | |
download | python-coveragepy-git-ade1f2c534d1b85c8b465ce302ab345b316ec3ef.tar.gz |
fix context reporting for relative_files
fix reporting of contexts when `relative_files = True`
fixes #900
Diffstat (limited to 'coverage/html.py')
-rw-r--r-- | coverage/html.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/html.py b/coverage/html.py index 4aa018e3..596e1143 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -95,7 +95,7 @@ class HtmlDataGeneration(object): arcs_executed = analysis.arcs_executed() if self.config.show_contexts: - contexts_by_lineno = analysis.data.contexts_by_lineno(fr.filename) + contexts_by_lineno = analysis.data.contexts_by_lineno(analysis.filename) lines = [] |