mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Merge pull request #1432 from pshriwise/test_harness_fix
Update generated input filename in test harness.
This commit is contained in:
commit
f2bd362b4b
1 changed files with 2 additions and 2 deletions
|
|
@ -348,9 +348,9 @@ class PyAPITestHarness(TestHarness):
|
|||
compare = filecmp.cmp('inputs_test.dat', 'inputs_true.dat')
|
||||
if not compare:
|
||||
expected = open('inputs_true.dat', 'r').readlines()
|
||||
actual = open('inputs_error.dat', 'r').readlines()
|
||||
actual = open('inputs_test.dat', 'r').readlines()
|
||||
diff = unified_diff(expected, actual, 'inputs_true.dat',
|
||||
'inputs_error.dat')
|
||||
'inputs_test.dat')
|
||||
print('Input differences:')
|
||||
print(''.join(colorize(diff)))
|
||||
os.rename('inputs_test.dat', 'inputs_error.dat')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue