diff options
author | Danny Allen <danny.allen@pennantplc.co.uk> | 2014-09-22 12:10:53 +0100 |
---|---|---|
committer | Danny Allen <danny.allen@pennantplc.co.uk> | 2014-09-22 12:10:53 +0100 |
commit | ad4c7f3a5194f6966454d534f02e6b02633fa370 (patch) | |
tree | b6e1feacb8ff67fab0d311e36c09a52ef8be188f /tests/test_files.py | |
parent | 1de59bd539baa6b38e98f08b268deb3eeaeb5eb0 (diff) | |
parent | 1b6d0d06624170fb7a17738387387b1f21357e94 (diff) | |
download | python-coveragepy-git-ad4c7f3a5194f6966454d534f02e6b02633fa370.tar.gz |
* Merge changes from head.
Diffstat (limited to 'tests/test_files.py')
-rw-r--r-- | tests/test_files.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_files.py b/tests/test_files.py index 070430ff..648c76a9 100644 --- a/tests/test_files.py +++ b/tests/test_files.py @@ -99,6 +99,14 @@ class MatcherTest(CoverageTest): self.assertMatches(fnm, "x123foo.txt", True) self.assertMatches(fnm, "x798bar.txt", False) + def test_fnmatch_windows_paths(self): + # We should be able to match Windows paths even if we are running on + # a non-Windows OS. + fnm = FnmatchMatcher(["*/foo.py"]) + self.assertMatches(fnm, r"dir\foo.py", True) + fnm = FnmatchMatcher([r"*\foo.py"]) + self.assertMatches(fnm, r"dir\foo.py", True) + class PathAliasesTest(CoverageTest): """Tests for coverage/files.py:PathAliases""" |