mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2024-11-21 14:18:57 -07:00
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:
parent
1a83213a40
commit
cf5ee2793a
1 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue