quteprocess: also mark expected WARNINGs
This commit is contained in:
parent
e2b521a408
commit
4863df5ac8
@ -117,7 +117,7 @@ class LogLine(testprocess.Line):
|
||||
format_str = log.EXTENDED_FMT
|
||||
# Mark expected errors with (Expected) so it's less confusing for tests
|
||||
# which expect errors but fail due to other errors.
|
||||
if self.expected and self.loglevel >= log.LOG_LEVELS['ERROR']:
|
||||
if self.expected and self.loglevel > logging.INFO:
|
||||
new_color = '{' + log.LOG_COLORS['DEBUG'] + '}'
|
||||
format_str = format_str.replace('{log_color}', new_color)
|
||||
format_str = re.sub(r'{levelname:(\d*)}',
|
||||
|
Loading…
Reference in New Issue
Block a user