Commit 190c6e86 authored by ufebl's avatar ufebl

Ignore newline differences between Windows and Linux

parent 280fe994
......@@ -522,7 +522,7 @@ class BasicDiffTestResult(BasicTestResult):
return super().is_correct() and self._contains_error_str
def _output_diff(self) -> str:
return "".join(difflib.Differ().compare(self.expected_output.splitlines(True), self.output.splitlines(True)))
return "\n".join(difflib.Differ().compare(self.expected_output.splitlines(False), self.output.splitlines(False)))
def is_output_correct(self) -> str:
return self._is_output_correct
......@@ -582,4 +582,4 @@ import mjtest.test.syntax_tests
import mjtest.test.ast_tests
import mjtest.test.semantic_tests
import mjtest.test.exec_tests
import mjtest.test.bench
\ No newline at end of file
import mjtest.test.bench
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