Mercurial > hgsubversion
diff tests/test_push_renames.py @ 1321:a36e87ae2380
tests: always compare manifest keys in sorted order
Not comparing sorted lists was probably always a mistake, but it became an
actual failure when upstream Mercurial changed to using lazymanifest, which
always returns keys in sorted order.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Fri, 27 Mar 2015 16:44:05 -0700 |
parents | 9a740cbb6895 |
children |
line wrap: on
line diff
--- a/tests/test_push_renames.py +++ b/tests/test_push_renames.py @@ -66,8 +66,8 @@ class TestPushRenames(test_util.TestBase ] self.commitchanges(changes) self.pushrevisions() - self.assertEqual(self.repo['tip'].manifest().keys(), - ['a', 'c', 'b', 'e', 'd', + self.assertEqual(sorted(self.repo['tip'].manifest().keys()), + ['a', 'b', 'c', 'd', 'e', 'random2/dir with space/file with space']) def test_push_rename_tree(self):