diff options
author | sylvain thenault <sylvain.thenault@logilab.fr> | 2009-03-12 14:47:47 +0100 |
---|---|---|
committer | sylvain thenault <sylvain.thenault@logilab.fr> | 2009-03-12 14:47:47 +0100 |
commit | 0c6c2c3b8fbd2d9c07eecffe27d4d9156d967e0c (patch) | |
tree | b35d7079f102a08da2a8511ab84d8e1bde01745a | |
parent | ada495f6048643ed489a511768aff0d83d31070a (diff) | |
download | logilab-common-0c6c2c3b8fbd2d9c07eecffe27d4d9156d967e0c.tar.gz |
strip text to diff
-rw-r--r-- | testlib.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |