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): ...@@ -281,7 +281,7 @@ class BasicTestResult(TestResult):
incorrect_msg: str = "incorrect return code"): incorrect_msg: str = "incorrect return code"):
super().__init__(test_case, error_code) super().__init__(test_case, error_code)
self._incorrect_msg = incorrect_msg 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.error_output = error_output
self.output = output self.output = output
self.other_texts = [] # type: List[Tuple[str, str, bool]] self.other_texts = [] # type: List[Tuple[str, str, bool]]
...@@ -420,4 +420,4 @@ class LexerDiffTest(DiffTest): ...@@ -420,4 +420,4 @@ class LexerDiffTest(DiffTest):
TestCase.TEST_CASE_CLASSES[TestMode.lexer].append(LexerDiffTest) TestCase.TEST_CASE_CLASSES[TestMode.lexer].append(LexerDiffTest)
import mjtest.test.syntax_tests import mjtest.test.syntax_tests
import mjtest.test.ast_tests import mjtest.test.ast_tests
\ No newline at end of file
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