diff tests/test_util.py @ 896:04dfc23688b9

allow Python 2.7 to show medium-size multiline diffs when tests fail
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Sat, 12 May 2012 16:19:59 +0200
parents 78db88de9622
children c4ee11a5d04c
line wrap: on
line diff
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -237,6 +237,9 @@ class TestBase(unittest.TestCase):
     def setUp(self):
         _verify_our_modules()
 
+        # the Python 2.7 default of 640 is obnoxiously low
+        self.maxDiff = 4096
+
         self.oldenv = dict([(k, os.environ.get(k, None),) for k in
                            ('LANG', 'LC_ALL', 'HGRCPATH',)])
         self.oldt = i18n.t