diff options
-rw-r--r-- | coverage/files.py | 2 | ||||
-rw-r--r-- | tests/test_files.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/coverage/files.py b/coverage/files.py index 252e42ec..c4fb33b3 100644 --- a/coverage/files.py +++ b/coverage/files.py @@ -199,7 +199,7 @@ class TreeMatcher: """ def __init__(self, paths, name): - self.original_paths = list(paths) + self.original_paths = sorted(paths) self.paths = list(map(os.path.normcase, paths)) self.name = name diff --git a/tests/test_files.py b/tests/test_files.py index 39a51d8c..d6005d36 100644 --- a/tests/test_files.py +++ b/tests/test_files.py @@ -172,7 +172,7 @@ class MatcherTest(CoverageTest): files.canonical_filename("SUB5/file6.py"), ] tm = TreeMatcher(trees, "test") - assert tm.info() == trees + assert tm.info() == sorted(trees) for filepath, matches in matches_to_try: self.assertMatches(tm, filepath, matches) |