From ade1f2c534d1b85c8b465ce302ab345b316ec3ef Mon Sep 17 00:00:00 2001 From: David Szotten Date: Fri, 20 Dec 2019 16:03:09 +0000 Subject: fix context reporting for relative_files fix reporting of contexts when `relative_files = True` fixes #900 --- coverage/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/html.py') 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 = [] -- cgit v1.2.1