Mercurial > hgsubversion
comparison tests/test_fetch_mappings.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 | 77bd24841a5f |
| children | 9a6bb3657861 |
comparison
equal
deleted
inserted
replaced
| 1481:1bb2df7523a3 | 1482:253b2ab253a1 |
|---|---|
| 147 repo = self._loadwithfilemap('replace_trunk_with_branch.svndump', | 147 repo = self._loadwithfilemap('replace_trunk_with_branch.svndump', |
| 148 "exclude alpha\ninclude .\nexclude gamma\n") | 148 "exclude alpha\ninclude .\nexclude gamma\n") |
| 149 # The exclusion of alpha is overridden by the later rule to | 149 # The exclusion of alpha is overridden by the later rule to |
| 150 # include all of '.', whereas gamma should remain excluded | 150 # include all of '.', whereas gamma should remain excluded |
| 151 # because it's excluded after the root directory. | 151 # because it's excluded after the root directory. |
| 152 self.assertEqual(self.repo[0].manifest().keys(), | 152 self.assertEqual(sorted(self.repo[0].manifest().keys()), |
| 153 ['alpha', 'beta']) | 153 ['alpha', 'beta']) |
| 154 self.assertEqual(self.repo['default'].manifest().keys(), | 154 self.assertEqual(sorted(self.repo['default'].manifest().keys()), |
| 155 ['alpha', 'beta']) | 155 ['alpha', 'beta']) |
| 156 | 156 |
| 157 @test_util.requiresreplay | 157 @test_util.requiresreplay |
| 158 def test_file_map_copy(self): | 158 def test_file_map_copy(self): |
| 159 # Exercise excluding files copied from a non-excluded directory. | 159 # Exercise excluding files copied from a non-excluded directory. |
