Make mismatches fail with assertTrue instead of assertEqual

We already report the differences even in diff format, and the scripts can get long. The output of assertEqual was not useful, therefore it's eliminated.
This commit is contained in:
Sei Lisa 2019-01-05 22:50:12 +01:00
parent 1a83213a40
commit cf5ee2793a

View file

@ -712,7 +712,7 @@ def generateScriptTests():
)
)
else:
self.assertEqual(expected_stderr, actual_stderr)
self.assertTrue(expected_stderr == actual_stderr)
except AssertionError:
sys.stderr.write('Failed'
'\n************ expected stderr:\n')
@ -733,7 +733,7 @@ def generateScriptTests():
self.assertIsNotNone(re.search(expected_stdout[6:],
actual_stdout))
else:
self.assertEqual(expected_stdout, actual_stdout)
self.assertTrue(expected_stdout == actual_stdout)
except AssertionError:
sys.stderr.write('Failed'
'\n************ expected stdout:\n')