tests: Parse function/line being unset for LogLine.
This commit is contained in:
parent
9a2125fc18
commit
4f6415631f
@ -94,8 +94,18 @@ class LogLine(testprocess.Line):
|
||||
else:
|
||||
self.module = module
|
||||
|
||||
self.function = match.group('function')
|
||||
self.line = int(match.group('line'))
|
||||
function = match.group('function')
|
||||
if function == 'none':
|
||||
self.function = None
|
||||
else:
|
||||
self.function = function
|
||||
|
||||
line = int(match.group('line'))
|
||||
if self.function is None and line == 0:
|
||||
self.line = None
|
||||
else:
|
||||
self.line = line
|
||||
|
||||
self.message = match.group('message')
|
||||
|
||||
self.expected = is_ignored_qt_message(self.message)
|
||||
|
Loading…
Reference in New Issue
Block a user