From 4f6415631fdd8f443be260f082e65942d26383f1 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 9 Nov 2015 19:34:13 +0100 Subject: [PATCH] tests: Parse function/line being unset for LogLine. --- tests/integration/quteprocess.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/integration/quteprocess.py b/tests/integration/quteprocess.py index 7b9daeaca..592ef99ce 100644 --- a/tests/integration/quteprocess.py +++ b/tests/integration/quteprocess.py @@ -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)