Change in vdsm[master]: tests: disable truncating diff in assert error messages
ibarkan at redhat.com
ibarkan at redhat.com
Thu Jun 25 19:04:43 UTC 2015
Ido Barkan has uploaded a new change for review.
Change subject: tests: disable truncating diff in assert error messages
......................................................................
tests: disable truncating diff in assert error messages
Set the maximum length of a diff in failure messages by assert
methods using difflib. When diffing long dictionaries this can make
debugging easier.
Change-Id: I70efdc56e7638ebe363453f1df4d3a520ab44f2e
Signed-off-by: Ido Barkan <ibarkan at redhat.com>
---
M tests/testlib.py
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/02/42902/1
diff --git a/tests/testlib.py b/tests/testlib.py
index 7f23c1a..5539366 100644
--- a/tests/testlib.py
+++ b/tests/testlib.py
@@ -150,6 +150,7 @@
def __init__(self, *args, **kwargs):
unittest.TestCase.__init__(self, *args, **kwargs)
self.log = logging.getLogger(self.__class__.__name__)
+ self.maxDiff = None # disable truncating diff in assert error messages
def retryAssert(self, *args, **kwargs):
'''Keep retrying an assertion if AssertionError is raised.
--
To view, visit https://gerrit.ovirt.org/42902
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I70efdc56e7638ebe363453f1df4d3a520ab44f2e
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Ido Barkan <ibarkan at redhat.com>
More information about the vdsm-patches
mailing list