changeset 596:066453cf2014

test_tags: improve test output.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Sun, 28 Jun 2009 12:50:52 +0200
parents 200770235bf0
children 737292a31028
files tests/test_tags.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test_tags.py
+++ b/tests/test_tags.py
@@ -73,7 +73,9 @@ rename a tag
                                             stupid=stupid)
         branches = set(repo[h] for h in repo.heads())
         self.assert_('dummy' not in branches)
-        self.assertEqual(repo['dummy'], repo['tip'].parents()[0])
+        self.assertEqual(repo['dummy'], repo['tip'].parents()[0],
+                         '%r != %r[0]' % (repo['dummy'],
+                                              repo['tip'].parents()))
         extra = repo['tip'].extra().copy()
         extra.pop('convert_revision', None)
         self.assertEqual(extra, {'branch': 'dummy', 'close': '1'})