comparison tests/comprehensive/test_rebuildmeta.py @ 1436:5de6ec1d7310

test_rebuildmeta: improve error message
author Augie Fackler <raf@durin42.com>
date Sun, 05 Jun 2016 21:25:49 -0400
parents b429e97666fd
children b98ff95b5861
comparison
equal deleted inserted replaced
1435:18a961672a72 1436:5de6ec1d7310
133 old, new, 133 old, new,
134 'rebuildmeta unexpected match on lastpulled: ' 134 'rebuildmeta unexpected match on lastpulled: '
135 'old %d new %d, case %r %r %r' % ( 135 'old %d new %d, case %r %r %r' % (
136 old, new, name, self.stupid, single)) 136 old, new, name, self.stupid, single))
137 continue 137 continue
138 self.assertEqual(old, new, tf + ' differs') 138 self.assertEqual(
139 old, new, '%s differs old: %r new %r'% (tf, old, new))
139 try: 140 try:
140 self.assertEqual(src.branchmap(), dest.branchmap()) 141 self.assertEqual(src.branchmap(), dest.branchmap())
141 except AttributeError: 142 except AttributeError:
142 # hg 2.8 and earlier 143 # hg 2.8 and earlier
143 self.assertEqual(src.branchtags(), dest.branchtags()) 144 self.assertEqual(src.branchtags(), dest.branchtags())