summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsylvain thenault <sylvain.thenault@logilab.fr>2009-03-12 14:47:47 +0100
committersylvain thenault <sylvain.thenault@logilab.fr>2009-03-12 14:47:47 +0100
commit0c6c2c3b8fbd2d9c07eecffe27d4d9156d967e0c (patch)
treeb35d7079f102a08da2a8511ab84d8e1bde01745a
parentada495f6048643ed489a511768aff0d83d31070a (diff)
downloadlogilab-common-0c6c2c3b8fbd2d9c07eecffe27d4d9156d967e0c.tar.gz
strip text to diff
-rw-r--r--testlib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testlib.py b/testlib.py
index e7c7b60..e85474d 100644
--- a/testlib.py
+++ b/testlib.py
@@ -1503,8 +1503,8 @@ succeeded test into", osp.join(os.getcwd(),FILE_RESTART)
msg.append('text2 is not a string (%s)'%(type(text2)))
if msg:
self.fail('\n'.join(msg))
- self._difftext(text1.splitlines(True), text2.splitlines(True), junk,
- msg_prefix)
+ self._difftext(text1.strip().splitlines(True), text2.strip().splitlines(True),
+ junk, msg_prefix)
assertTextEqual = assertTextEquals
def assertStreamEquals(self, stream1, stream2, junk=None,