changeset 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 5b9f17e34126
children 6bc8046e3d0a
files tests/test_util.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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