diff --git a/integration-tests/test_yeastx.py b/integration-tests/test_yeastx.py
index e1bb659bec4b24c4d0a44614be2d45b31ba2663c..4570768e7d58e22d91da8b8d61713ec9694248bf 100755
--- a/integration-tests/test_yeastx.py
+++ b/integration-tests/test_yeastx.py
@@ -101,7 +101,7 @@ class TestCase(systemtest.testcase.TestCase):
                     expectedLines = self.getExpectedLogEntries(openbisController.testName, dataName)
                     failed = False
                     for i, line, expectedLine in zip(range(len(lines)), lines, expectedLines):
-                        if not self.assertEquals("%d. line of '%s'" % (i+1, dataName), expectedLine.rstrip(), line.rstrip()):
+                        if not self.assertEquals("%d. line of '%s'" % (i+1, dataName), expectedLine.strip(), line.strip()):
                             self.printLogEntries(lines)
                             failed = True
                             break