Commit 419cc9fd authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

strip log file contents

parent 40fab6cc
Pipeline #2430 failed with stage
......@@ -25,6 +25,6 @@ class TestFile(unittest.TestCase):
logger.error("Good morning ...")
with open("test_logger.log", "r") as f:
lines = f.readlines()
self.assertTrue(lines[0].endswith("Hello ..."))
self.assertTrue(lines[1].endswith("There ..."))
self.assertTrue(lines[2].endswith("Good morning ..."))
self.assertTrue(lines[0].strip().endswith("Hello ..."))
self.assertTrue(lines[1].strip().endswith("There ..."))
self.assertTrue(lines[2].strip().endswith("Good morning ..."))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment