Merge "Set a higher default for maxDiff"

This commit is contained in:
Jenkins 2015-02-19 16:44:30 +00:00 committed by Gerrit Code Review
commit 0b8cd200f9

View File

@ -73,6 +73,13 @@ class BaseTestCase(testtools.TestCase):
def __init__(self, *args, **kwds):
super(BaseTestCase, self).__init__(*args, **kwds)
# This is the number of characters shown when two objects do not
# match for assertDictEqual, assertMultiLineEqual, and
# assertSequenceEqual. The default is 640 which is too
# low for comparing most dicts
self.maxDiff = 10000
# Ensure that the mock.patch.stopall cleanup is registered
# before any setUp() methods have a chance to register other
# things to be cleaned up, so it is called last. This allows