summaryrefslogtreecommitdiff
path: root/coverage/xmlreport.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/xmlreport.py')
-rw-r--r--coverage/xmlreport.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/coverage/xmlreport.py b/coverage/xmlreport.py
index fc16f100..1991d739 100644
--- a/coverage/xmlreport.py
+++ b/coverage/xmlreport.py
@@ -106,7 +106,8 @@ class XmlReporter(Reporter):
xclass.appendChild(xlines)
xclass.setAttribute("name", className)
- xclass.setAttribute("filename", cu.file_locator.relative_filename(cu.filename))
+ filename = cu.file_locator.relative_filename(cu.filename)
+ xclass.setAttribute("filename", filename.replace("\\", "/"))
xclass.setAttribute("complexity", "0")
branch_stats = analysis.branch_stats()