mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Use cross-platform os.rename instead of system call to cp.
This commit is contained in:
parent
288800d315
commit
a2a09eef63
62 changed files with 64 additions and 64 deletions
|
|
@ -23,7 +23,7 @@ def test_results():
|
|||
os.system('python results.py')
|
||||
compare = filecmp.cmp('results_test.dat', 'results_true.dat')
|
||||
if not compare:
|
||||
os.system('cp results_test.dat results_error.dat')
|
||||
os.rename('results_test.dat', 'results_error.dat')
|
||||
assert compare
|
||||
|
||||
def teardown():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue