Change a rogue re.fullmatch into a re.search.

Sometimes tests were timing out. Perhaps with fullmatch these tests were
rarely failing to parse the logs for the information.
This commit is contained in:
George Edward Bulmer 2017-12-12 21:42:10 +00:00
parent 9ca6baca4f
commit 4844a68bfc

View File

@ -335,7 +335,7 @@ class Process(QObject):
if expected is None:
return True
elif isinstance(expected, regex_type):
return expected.fullmatch(value)
return expected.search(value)
elif isinstance(value, (bytes, str)):
return utils.pattern_match(pattern=expected, value=value)
else: