Mercurial > hgsubversion
diff tests/test_fetch_branches.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 | d55c9d0ba350 |
line wrap: on
line diff
--- a/tests/test_fetch_branches.py +++ b/tests/test_fetch_branches.py @@ -41,7 +41,8 @@ class TestFetchBranches(test_util.TestBa heads = dict([(ctx.branch(), ctx) for ctx in heads]) # Let these tests disabled yet as the fix is not obvious self.assertEqual(heads['branch1'].manifest().keys(), ['b']) - self.assertEqual(heads['branch2'].manifest().keys(), ['a', 'b']) + self.assertEqual(sorted(heads['branch2'].manifest().keys()), + ['a', 'b']) def test_unorderedbranch(self): repo = self._load_fixture_and_fetch('unorderedbranch.svndump')