diff --git a/tests/end2end/fixtures/quteprocess.py b/tests/end2end/fixtures/quteprocess.py index aace5374e..7581fc232 100644 --- a/tests/end2end/fixtures/quteprocess.py +++ b/tests/end2end/fixtures/quteprocess.py @@ -95,9 +95,10 @@ class LogLine(testprocess.Line): This returns a line like qute without --json-logging would produce. """ + log_color = log.LOG_COLORS[self.levelname] format_dict = { 'asctime': self.timestamp.strftime(log.DATEFMT), - 'log_color': log.LOG_COLORS[self.levelname], + 'log_color': log.ColoredFormatter.COLOR_ESCAPES[log_color], 'levelname': self.levelname, 'reset': log.ColoredFormatter.RESET_ESCAPE, 'name': self.category,