summaryrefslogtreecommitdiff
path: root/coverage/html.py
diff options
context:
space:
mode:
authorDavid Szotten <davidszotten@gmail.com>2019-12-20 16:03:09 +0000
committerNed Batchelder <ned@nedbatchelder.com>2019-12-21 10:28:40 -0500
commitade1f2c534d1b85c8b465ce302ab345b316ec3ef (patch)
tree427add523f3760d6eba40b67e7f5e93dda0c8a26 /coverage/html.py
parent7dc37728d3ddddd12115bb94c58ad0dc67dcfb3e (diff)
downloadpython-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.py2
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 = []