summaryrefslogtreecommitdiff
path: root/tests/test_files.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-08-15 06:47:37 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-08-15 06:47:37 -0400
commit624ef0d0662d27fc3c95b2820c98bad5d69f2270 (patch)
treec0840c9226db42c301ffad13d76884029374870d /tests/test_files.py
parent9ac9f055de890a9f4cc8be0c0a3cc00f9be31d11 (diff)
downloadpython-coveragepy-git-624ef0d0662d27fc3c95b2820c98bad5d69f2270.tar.gz
Use ntpath so Windows file manipulation can be tested the same everywhere.
Diffstat (limited to 'tests/test_files.py')
-rw-r--r--tests/test_files.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_files.py b/tests/test_files.py
index 813f8612..e3d33285 100644
--- a/tests/test_files.py
+++ b/tests/test_files.py
@@ -56,7 +56,7 @@ class FilesTest(CoverageTest):
def test_flat_rootname(self):
self.assertEqual(flat_rootname("a/b/c.py"), "a_b_c_py")
- self.assertEqual(flat_rootname(r"c:\foo\bar.html"), "c__foo_bar_html")
+ self.assertEqual(flat_rootname(r"c:\foo\bar.html"), "_foo_bar_html")
class MatcherTest(CoverageTest):