diff tests/test_tags.py @ 1482:253b2ab253a1 stable

tests: add some sorted() calls on unsorted sets These are all just defects in the tests exposed by running the tests under a random hash seed.
author Augie Fackler <raf@durin42.com>
date Sun, 26 Jun 2016 17:02:12 -0400
parents a36e87ae2380
children 9a6bb3657861
line wrap: on
line diff
--- a/tests/test_tags.py
+++ b/tests/test_tags.py
@@ -128,10 +128,8 @@ rename a tag
             'branch': 'magic',
             'convert_revision': 'svn:af82cc90-c2d2-43cd-b1aa-c8a78449440a/tags/will-edit@19'})
        self.assertEqual(willedit, repo.tags()['will-edit'])
-       self.assertEqual(repo['will-edit'].manifest().keys(), ['alpha',
-                                                              'beta',
-                                                              'gamma',
-                                                              ])
+       self.assertEqual(sorted(repo['will-edit'].manifest().keys()),
+                        ['alpha', 'beta', 'gamma'])
        self.assertEqual(
            repo[alsoedit].extra(),
            {'close': '1',