diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-11-22 12:50:58 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-11-22 12:50:58 -0500 |
commit | 00603e012d01088f1d648106c6fbffaa9ada1ec7 (patch) | |
tree | 1f4d69cf4336632cc325c013db32de182c112fa8 /tests/test_xml.py | |
parent | 53255196ec4b3bb9b7ba0e8aff3eabb96cf0917b (diff) | |
download | python-coveragepy-00603e012d01088f1d648106c6fbffaa9ada1ec7.tar.gz |
Windows windows
Diffstat (limited to 'tests/test_xml.py')
-rw-r--r-- | tests/test_xml.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_xml.py b/tests/test_xml.py index 3d79543..60cdd71 100644 --- a/tests/test_xml.py +++ b/tests/test_xml.py @@ -315,7 +315,7 @@ class XmlGoldTest(CoverageGoldTest): import a # pragma: nested cov.stop() # pragma: nested cov.xml_report(a, outfile="../out/xml_1/coverage.xml") - source_path = coverage.files.relative_directory().rstrip('/') + source_path = coverage.files.relative_directory().rstrip(r"\/") compare("gold_x_xml", "out/xml_1", scrubs=[ (r' timestamp="\d+"', ' timestamp="TIMESTAMP"'), @@ -334,7 +334,7 @@ class XmlGoldTest(CoverageGoldTest): import a # pragma: nested cov.stop() # pragma: nested cov.xml_report(a) - source_path = coverage.files.relative_directory().rstrip('/') + source_path = coverage.files.relative_directory().rstrip(r"\/") compare("gold_x_xml", "out/xml_2", scrubs=[ (r' timestamp="\d+"', ' timestamp="TIMESTAMP"'), @@ -353,7 +353,7 @@ class XmlGoldTest(CoverageGoldTest): import y # pragma: nested cov.stop() # pragma: nested cov.xml_report(y, outfile="../out/y_xml_branch/coverage.xml") - source_path = coverage.files.relative_directory().rstrip('/') + source_path = coverage.files.relative_directory().rstrip(r"\/") compare("gold_y_xml_branch", "out/y_xml_branch", scrubs=[ (r' timestamp="\d+"', ' timestamp="TIMESTAMP"'), |