# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1336832399 -7200 # Node ID 04dfc23688b9e58263338f5df1c00e5fb73e7780 # Parent 5b9f17e34126a80d523d50fdb5e8b34e7d132fa8 allow Python 2.7 to show medium-size multiline diffs when tests fail diff --git a/tests/test_util.py b/tests/test_util.py --- 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