Use cross-platform os.rename instead of system call to cp.

This commit is contained in:
Paul Romano 2013-08-14 20:09:27 -05:00
parent 288800d315
commit a2a09eef63
62 changed files with 64 additions and 64 deletions

View file

@ -26,7 +26,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():