summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-10-08 07:38:38 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-10-08 09:42:43 -0400
commit6217af70939d939b6abfc4abfe32a03bc47da967 (patch)
treee0c09571b420a8e78132ce1026a71e017bde87be
parent56f850956513578b2a73ac1e1be5e3c9483432e6 (diff)
downloadpython-coveragepy-git-6217af70939d939b6abfc4abfe32a03bc47da967.tar.gz
test: canonicalize this bit of debug output
-rw-r--r--coverage/files.py2
-rw-r--r--tests/test_files.py2
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)