summaryrefslogtreecommitdiff
path: root/testlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'testlib.py')
-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,