diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-21 21:44:09 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-21 21:44:09 -0500 |
commit | 0c6f2f058fa24d3448ee80b2bd5166904dbfa402 (patch) | |
tree | 12e308d97729bc7fc1f504b0661306893bef4c2c /coverage/xmlreport.py | |
parent | 588cf5bbb457dbec49a84578be3a47453b04934a (diff) | |
download | python-coveragepy-0c6f2f058fa24d3448ee80b2bd5166904dbfa402.tar.gz |
XML filename paths get slashes on all platforms.
Diffstat (limited to 'coverage/xmlreport.py')
-rw-r--r-- | coverage/xmlreport.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coverage/xmlreport.py b/coverage/xmlreport.py index fc16f10..1991d73 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() |