diff options
Diffstat (limited to 'coverage/xmlreport.py')
-rw-r--r-- | coverage/xmlreport.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/xmlreport.py b/coverage/xmlreport.py index b5a33ddc..3b651d46 100644 --- a/coverage/xmlreport.py +++ b/coverage/xmlreport.py @@ -166,7 +166,7 @@ class XmlReporter(Reporter): xclass.appendChild(xlines) xclass.setAttribute("name", os.path.relpath(rel_name, dirname)) - xclass.setAttribute("filename", fr.relative_filename().replace("\\", "/")) + xclass.setAttribute("filename", rel_name.replace("\\", "/")) xclass.setAttribute("complexity", "0") branch_stats = analysis.branch_stats() |