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:
parent
9ca6baca4f
commit
4844a68bfc
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user