Commit ea2a7fbe937bc6d7a49a739e5cf940314cb37f26

Authored by Christian Herdtweck
1 parent 58bb3b81

tests: Fix log-helper test on windows

tests/common/log_helper/test_log_helper.py
... ... @@ -222,7 +222,7 @@ class TestLogHelper(unittest.TestCase):
222 222 self.assertIn('Caught exception', output) # actual log message
223 223 self.assertIn('This is an exception', output) # message of caught exception
224 224 self.assertIn('Traceback (most recent call last)', output) # start of trace
225   - self.assertIn(TEST_FILE, output) # part of trace
  225 + self.assertIn(TEST_FILE.replace('\\', '\\\\'), output) # part of trace
226 226  
227 227 def test_json_wrong_args(self):
228 228 """Test that too many or missing args do not raise exceptions inside logger"""
... ...