summaryrefslogtreecommitdiff
path: root/tests/test_files.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_files.py')
-rw-r--r--tests/test_files.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_files.py b/tests/test_files.py
index 9df4e5d0..84e25f10 100644
--- a/tests/test_files.py
+++ b/tests/test_files.py
@@ -349,6 +349,20 @@ class PathAliasesTest(CoverageTest):
'./django/foo/bar.py'
)
+ def test_windows_root_paths(self):
+ aliases = PathAliases()
+ aliases.add('X:\\', '/tmp/src')
+ self.assert_mapped(
+ aliases,
+ "X:\\a\\file.py",
+ "/tmp/src/a/file.py"
+ )
+ self.assert_mapped(
+ aliases,
+ "X:\\file.py",
+ "/tmp/src/file.py"
+ )
+
def test_leading_wildcard(self):
aliases = PathAliases()
aliases.add('*/d1', './mysrc1')