Mercurial > hgsubversion
comparison tests/comprehensive/test_rebuildmeta.py @ 1433:b429e97666fd
test_rebuildmeta: improve error message
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sun, 05 Jun 2016 21:08:35 -0400 |
parents | c6b01fd34694 |
children | 5de6ec1d7310 |
comparison
equal
deleted
inserted
replaced
1432:a2ef2c1e3644 | 1433:b429e97666fd |
---|---|
127 self.assertTrue(os.path.isfile(dtf), '%r is missing!' % tf) | 127 self.assertTrue(os.path.isfile(dtf), '%r is missing!' % tf) |
128 if os.path.isfile(stf) and os.path.isfile(dtf): | 128 if os.path.isfile(stf) and os.path.isfile(dtf): |
129 old, new = util.load(stf, resave=False), util.load(dtf, resave=False) | 129 old, new = util.load(stf, resave=False), util.load(dtf, resave=False) |
130 if tf == 'lastpulled' and (name, | 130 if tf == 'lastpulled' and (name, |
131 self.stupid, single) in expect_youngest_skew: | 131 self.stupid, single) in expect_youngest_skew: |
132 self.assertNotEqual(old, new, | 132 self.assertNotEqual( |
133 'rebuildmeta unexpected match on youngest rev!') | 133 old, new, |
134 'rebuildmeta unexpected match on lastpulled: ' | |
135 'old %d new %d, case %r %r %r' % ( | |
136 old, new, name, self.stupid, single)) | |
134 continue | 137 continue |
135 self.assertEqual(old, new, tf + ' differs') | 138 self.assertEqual(old, new, tf + ' differs') |
136 try: | 139 try: |
137 self.assertEqual(src.branchmap(), dest.branchmap()) | 140 self.assertEqual(src.branchmap(), dest.branchmap()) |
138 except AttributeError: | 141 except AttributeError: |