diff tests/comprehensive/test_verify_and_startrev.py @ 894:9562f606c4aa

make assertion failures slightly more helpful by including the failing verification
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Sat, 12 May 2012 15:28:44 +0200
parents 3bfb7e985c47
children 6bc8046e3d0a
line wrap: on
line diff
--- a/tests/comprehensive/test_verify_and_startrev.py
+++ b/tests/comprehensive/test_verify_and_startrev.py
@@ -57,11 +57,13 @@ def _do_case(self, name, stupid, layout)
         fulltip = repo['tip']
         shallowtip = shallowrepo['tip']
 
+        repo.ui.pushbuffer()
         self.assertEqual(0, svncommands.verify(repo.ui, shallowrepo,
                                                rev=shallowtip.node()))
 
         # viewing diff's of lists of files is easier on the eyes
-        self.assertMultiLineEqual('\n'.join(fulltip), '\n'.join(shallowtip))
+        self.assertMultiLineEqual('\n'.join(fulltip), '\n'.join(shallowtip),
+                                  repo.ui.popbuffer())
 
         for f in fulltip:
             self.assertMultiLineEqual(fulltip[f].data(), shallowtip[f].data())