Skip to content

Commit d086584

Browse files
committed
Rewrite CodeBase test to not assume a sorted list
rglob is not guaranteed to return a sorted list, and the output is OS-dependent. We may want to revisit this decision in future, but it will be easier to further constrain the behavior of the CodeBase iterator than to remove functionality that users rely on. Signed-off-by: John Pennycook <john.pennycook@intel.com>
1 parent 55a62ce commit d086584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/code-base/test_code_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def test_iterator(self):
9999
str(p1 / "foo.cpp"),
100100
str(p2 / "qux.cpp"),
101101
]
102-
self.assertEqual(files, expected)
102+
self.assertCountEqual(files, expected)
103103

104104

105105
if __name__ == "__main__":

0 commit comments

Comments
 (0)