Commit eaae56f4 authored by Sebastian Graf's avatar Sebastian Graf

Fixed a TypeError, trying to find 'error' in a None

parent f3758742
......@@ -281,7 +281,7 @@ class BasicTestResult(TestResult):
incorrect_msg: str = "incorrect return code"):
super().__init__(test_case, error_code)
self._incorrect_msg = incorrect_msg
self._contains_error_str = "error" in error_output
self._contains_error_str = error_output is not None and "error" in error_output
self.error_output = error_output
self.output = output
self.other_texts = [] # type: List[Tuple[str, str, bool]]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment