Commits

Ned Batchelder  committed abed861

XML filename paths get slashes on all platforms.

  • Participants
  • Parent commits 5b49a4e

Comments (0)

Files changed (1)

File coverage/xmlreport.py

         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()