diff options
author | Ionel Cristian Maries <contact@ionelmc.ro> | 2015-06-07 03:16:28 +0300 |
---|---|---|
committer | Ionel Cristian Maries <contact@ionelmc.ro> | 2015-06-07 03:16:28 +0300 |
commit | 588f3789c29ebf05cfe7b69ae306a40e34f83d1a (patch) | |
tree | f42620d4d13e5050c6d363a9346fbf799d7ff85e /tests/test_files.py | |
parent | 5f4265d53540aca7274b564fc3d863227f0da99c (diff) | |
download | python-coveragepy-git-588f3789c29ebf05cfe7b69ae306a40e34f83d1a.tar.gz |
Add a test for the Windows issue of actual_path.
--HG--
branch : ionelmc/correct-path-normalization-on-windows-th-1433618255921
Diffstat (limited to 'tests/test_files.py')
-rw-r--r-- | tests/test_files.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test_files.py b/tests/test_files.py index ae56e728..acf42256 100644 --- a/tests/test_files.py +++ b/tests/test_files.py @@ -5,13 +5,20 @@ import os.path from coverage.files import ( FileLocator, TreeMatcher, FnmatchMatcher, ModuleMatcher, PathAliases, - find_python_files, abs_file + find_python_files, abs_file, actual_path ) from coverage.misc import CoverageException +from coverage import env from tests.coveragetest import CoverageTest +if env.WINDOWS: + class IncompleteWindowsTest(CoverageTest): + def test_actual_path(self): + self.assertEquals(actual_path(r'c:\Windows'), actual_path(r'C:\wINDOWS')) + + class FileLocatorTest(CoverageTest): """Tests of `FileLocator`.""" |