diff --git a/tests/test_basic/test_basic.py b/tests/test_basic/test_basic.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_basic/test_basic.py +++ b/tests/test_basic/test_basic.py @@ -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(): diff --git a/tests/test_confidence_intervals/test_confidence_intervals.py b/tests/test_confidence_intervals/test_confidence_intervals.py index 7ccc665679..bb7f430615 100644 --- a/tests/test_confidence_intervals/test_confidence_intervals.py +++ b/tests/test_confidence_intervals/test_confidence_intervals.py @@ -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(): diff --git a/tests/test_density_atombcm/test_density_atombcm.py b/tests/test_density_atombcm/test_density_atombcm.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_density_atombcm/test_density_atombcm.py +++ b/tests/test_density_atombcm/test_density_atombcm.py @@ -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(): diff --git a/tests/test_density_atomcm3/test_density_atomcm3.py b/tests/test_density_atomcm3/test_density_atomcm3.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_density_atomcm3/test_density_atomcm3.py +++ b/tests/test_density_atomcm3/test_density_atomcm3.py @@ -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(): diff --git a/tests/test_density_kgm3/test_density_kgm3.py b/tests/test_density_kgm3/test_density_kgm3.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_density_kgm3/test_density_kgm3.py +++ b/tests/test_density_kgm3/test_density_kgm3.py @@ -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(): diff --git a/tests/test_density_sum/test_density_sum.py b/tests/test_density_sum/test_density_sum.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_density_sum/test_density_sum.py +++ b/tests/test_density_sum/test_density_sum.py @@ -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(): diff --git a/tests/test_eigenvalue_genperbatch/test_eigenvalue_genperbatch.py b/tests/test_eigenvalue_genperbatch/test_eigenvalue_genperbatch.py index 7c50483223..042586c38b 100644 --- a/tests/test_eigenvalue_genperbatch/test_eigenvalue_genperbatch.py +++ b/tests/test_eigenvalue_genperbatch/test_eigenvalue_genperbatch.py @@ -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(): diff --git a/tests/test_eigenvalue_no_inactive/test_eigenvalue_no_inactive.py b/tests/test_eigenvalue_no_inactive/test_eigenvalue_no_inactive.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_eigenvalue_no_inactive/test_eigenvalue_no_inactive.py +++ b/tests/test_eigenvalue_no_inactive/test_eigenvalue_no_inactive.py @@ -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(): diff --git a/tests/test_energy_grid/test_energy_grid.py b/tests/test_energy_grid/test_energy_grid.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_energy_grid/test_energy_grid.py +++ b/tests/test_energy_grid/test_energy_grid.py @@ -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(): diff --git a/tests/test_entropy/test_entropy.py b/tests/test_entropy/test_entropy.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_entropy/test_entropy.py +++ b/tests/test_entropy/test_entropy.py @@ -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(): diff --git a/tests/test_filter_cell/test_filter_cell.py b/tests/test_filter_cell/test_filter_cell.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_filter_cell/test_filter_cell.py +++ b/tests/test_filter_cell/test_filter_cell.py @@ -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(): diff --git a/tests/test_filter_cellborn/test_filter_cellborn.py b/tests/test_filter_cellborn/test_filter_cellborn.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_filter_cellborn/test_filter_cellborn.py +++ b/tests/test_filter_cellborn/test_filter_cellborn.py @@ -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(): diff --git a/tests/test_filter_energy/test_filter_energy.py b/tests/test_filter_energy/test_filter_energy.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_filter_energy/test_filter_energy.py +++ b/tests/test_filter_energy/test_filter_energy.py @@ -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(): diff --git a/tests/test_filter_energyout/test_filter_energyout.py b/tests/test_filter_energyout/test_filter_energyout.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_filter_energyout/test_filter_energyout.py +++ b/tests/test_filter_energyout/test_filter_energyout.py @@ -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(): diff --git a/tests/test_filter_group_transfer/test_filter_group_transfer.py b/tests/test_filter_group_transfer/test_filter_group_transfer.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_filter_group_transfer/test_filter_group_transfer.py +++ b/tests/test_filter_group_transfer/test_filter_group_transfer.py @@ -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(): diff --git a/tests/test_filter_material/test_filter_material.py b/tests/test_filter_material/test_filter_material.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_filter_material/test_filter_material.py +++ b/tests/test_filter_material/test_filter_material.py @@ -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(): diff --git a/tests/test_filter_mesh_2d/test_filter_mesh_2d.py b/tests/test_filter_mesh_2d/test_filter_mesh_2d.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_filter_mesh_2d/test_filter_mesh_2d.py +++ b/tests/test_filter_mesh_2d/test_filter_mesh_2d.py @@ -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(): diff --git a/tests/test_filter_mesh_3d/test_filter_mesh_3d.py b/tests/test_filter_mesh_3d/test_filter_mesh_3d.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_filter_mesh_3d/test_filter_mesh_3d.py +++ b/tests/test_filter_mesh_3d/test_filter_mesh_3d.py @@ -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(): diff --git a/tests/test_filter_universe/test_filter_universe.py b/tests/test_filter_universe/test_filter_universe.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_filter_universe/test_filter_universe.py +++ b/tests/test_filter_universe/test_filter_universe.py @@ -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(): diff --git a/tests/test_fixed_source/test_fixed_source.py b/tests/test_fixed_source/test_fixed_source.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_fixed_source/test_fixed_source.py +++ b/tests/test_fixed_source/test_fixed_source.py @@ -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(): diff --git a/tests/test_lattice/test_lattice.py b/tests/test_lattice/test_lattice.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_lattice/test_lattice.py +++ b/tests/test_lattice/test_lattice.py @@ -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(): diff --git a/tests/test_lattice_multiple/test_lattice_multiple.py b/tests/test_lattice_multiple/test_lattice_multiple.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_lattice_multiple/test_lattice_multiple.py +++ b/tests/test_lattice_multiple/test_lattice_multiple.py @@ -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(): diff --git a/tests/test_natural_element/test_natural_element.py b/tests/test_natural_element/test_natural_element.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_natural_element/test_natural_element.py +++ b/tests/test_natural_element/test_natural_element.py @@ -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(): diff --git a/tests/test_output/test_output.py b/tests/test_output/test_output.py index 64d6d988eb..820f15f0f6 100644 --- a/tests/test_output/test_output.py +++ b/tests/test_output/test_output.py @@ -29,7 +29,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(): diff --git a/tests/test_particle_restart/test_particle_restart.py b/tests/test_particle_restart/test_particle_restart.py index ebdb918d92..911df4aa82 100644 --- a/tests/test_particle_restart/test_particle_restart.py +++ b/tests/test_particle_restart/test_particle_restart.py @@ -22,7 +22,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 test_run_restart(): diff --git a/tests/test_ptables_off/test_ptables_off.py b/tests/test_ptables_off/test_ptables_off.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_ptables_off/test_ptables_off.py +++ b/tests/test_ptables_off/test_ptables_off.py @@ -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(): diff --git a/tests/test_reflective_cone/test_reflective_cone.py b/tests/test_reflective_cone/test_reflective_cone.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_reflective_cone/test_reflective_cone.py +++ b/tests/test_reflective_cone/test_reflective_cone.py @@ -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(): diff --git a/tests/test_reflective_cylinder/test_reflective_cylinder.py b/tests/test_reflective_cylinder/test_reflective_cylinder.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_reflective_cylinder/test_reflective_cylinder.py +++ b/tests/test_reflective_cylinder/test_reflective_cylinder.py @@ -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(): diff --git a/tests/test_reflective_plane/test_reflective_plane.py b/tests/test_reflective_plane/test_reflective_plane.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_reflective_plane/test_reflective_plane.py +++ b/tests/test_reflective_plane/test_reflective_plane.py @@ -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(): diff --git a/tests/test_reflective_sphere/test_reflective_sphere.py b/tests/test_reflective_sphere/test_reflective_sphere.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_reflective_sphere/test_reflective_sphere.py +++ b/tests/test_reflective_sphere/test_reflective_sphere.py @@ -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(): diff --git a/tests/test_rotation/test_rotation.py b/tests/test_rotation/test_rotation.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_rotation/test_rotation.py +++ b/tests/test_rotation/test_rotation.py @@ -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(): diff --git a/tests/test_salphabeta/test_salphabeta.py b/tests/test_salphabeta/test_salphabeta.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_salphabeta/test_salphabeta.py +++ b/tests/test_salphabeta/test_salphabeta.py @@ -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(): diff --git a/tests/test_salphabeta_multiple/test_salphabeta_multiple.py b/tests/test_salphabeta_multiple/test_salphabeta_multiple.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_salphabeta_multiple/test_salphabeta_multiple.py +++ b/tests/test_salphabeta_multiple/test_salphabeta_multiple.py @@ -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(): diff --git a/tests/test_score_MT/test_score_MT.py b/tests/test_score_MT/test_score_MT.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_score_MT/test_score_MT.py +++ b/tests/test_score_MT/test_score_MT.py @@ -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(): diff --git a/tests/test_score_absorption/test_score_absorption.py b/tests/test_score_absorption/test_score_absorption.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_score_absorption/test_score_absorption.py +++ b/tests/test_score_absorption/test_score_absorption.py @@ -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(): diff --git a/tests/test_score_current/test_score_current.py b/tests/test_score_current/test_score_current.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_score_current/test_score_current.py +++ b/tests/test_score_current/test_score_current.py @@ -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(): diff --git a/tests/test_score_events/test_score_events.py b/tests/test_score_events/test_score_events.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_score_events/test_score_events.py +++ b/tests/test_score_events/test_score_events.py @@ -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(): diff --git a/tests/test_score_fission/test_score_fission.py b/tests/test_score_fission/test_score_fission.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_score_fission/test_score_fission.py +++ b/tests/test_score_fission/test_score_fission.py @@ -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(): diff --git a/tests/test_score_flux/test_score_flux.py b/tests/test_score_flux/test_score_flux.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_score_flux/test_score_flux.py +++ b/tests/test_score_flux/test_score_flux.py @@ -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(): diff --git a/tests/test_score_kappafission/test_score_kappafission.py b/tests/test_score_kappafission/test_score_kappafission.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_score_kappafission/test_score_kappafission.py +++ b/tests/test_score_kappafission/test_score_kappafission.py @@ -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(): diff --git a/tests/test_score_nufission/test_score_nufission.py b/tests/test_score_nufission/test_score_nufission.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_score_nufission/test_score_nufission.py +++ b/tests/test_score_nufission/test_score_nufission.py @@ -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(): diff --git a/tests/test_score_nuscatter/test_score_nuscatter.py b/tests/test_score_nuscatter/test_score_nuscatter.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_score_nuscatter/test_score_nuscatter.py +++ b/tests/test_score_nuscatter/test_score_nuscatter.py @@ -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(): diff --git a/tests/test_score_scatter/test_score_scatter.py b/tests/test_score_scatter/test_score_scatter.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_score_scatter/test_score_scatter.py +++ b/tests/test_score_scatter/test_score_scatter.py @@ -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(): diff --git a/tests/test_score_scatter_n/test_score_scatter_n.py b/tests/test_score_scatter_n/test_score_scatter_n.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_score_scatter_n/test_score_scatter_n.py +++ b/tests/test_score_scatter_n/test_score_scatter_n.py @@ -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(): diff --git a/tests/test_score_scatter_pn/test_score_scatter_pn.py b/tests/test_score_scatter_pn/test_score_scatter_pn.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_score_scatter_pn/test_score_scatter_pn.py +++ b/tests/test_score_scatter_pn/test_score_scatter_pn.py @@ -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(): diff --git a/tests/test_score_total/test_score_total.py b/tests/test_score_total/test_score_total.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_score_total/test_score_total.py +++ b/tests/test_score_total/test_score_total.py @@ -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(): diff --git a/tests/test_seed/test_seed.py b/tests/test_seed/test_seed.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_seed/test_seed.py +++ b/tests/test_seed/test_seed.py @@ -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(): diff --git a/tests/test_source_angle_mono/test_source_angle_mono.py b/tests/test_source_angle_mono/test_source_angle_mono.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_source_angle_mono/test_source_angle_mono.py +++ b/tests/test_source_angle_mono/test_source_angle_mono.py @@ -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(): diff --git a/tests/test_source_energy_maxwell/test_source_energy_maxwell.py b/tests/test_source_energy_maxwell/test_source_energy_maxwell.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_source_energy_maxwell/test_source_energy_maxwell.py +++ b/tests/test_source_energy_maxwell/test_source_energy_maxwell.py @@ -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(): diff --git a/tests/test_source_energy_mono/test_source_energy_mono.py b/tests/test_source_energy_mono/test_source_energy_mono.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_source_energy_mono/test_source_energy_mono.py +++ b/tests/test_source_energy_mono/test_source_energy_mono.py @@ -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(): diff --git a/tests/test_source_point/test_source_point.py b/tests/test_source_point/test_source_point.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_source_point/test_source_point.py +++ b/tests/test_source_point/test_source_point.py @@ -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(): diff --git a/tests/test_statepoint_batch/test_statepoint_batch.py b/tests/test_statepoint_batch/test_statepoint_batch.py index c488f3bd45..d6d290e780 100644 --- a/tests/test_statepoint_batch/test_statepoint_batch.py +++ b/tests/test_statepoint_batch/test_statepoint_batch.py @@ -25,7 +25,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(): diff --git a/tests/test_statepoint_interval/test_statepoint_interval.py b/tests/test_statepoint_interval/test_statepoint_interval.py index cc6d7ef0af..0dcd339f00 100644 --- a/tests/test_statepoint_interval/test_statepoint_interval.py +++ b/tests/test_statepoint_interval/test_statepoint_interval.py @@ -28,7 +28,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(): diff --git a/tests/test_statepoint_restart/test_statepoint_restart.py b/tests/test_statepoint_restart/test_statepoint_restart.py index 18d67d8a59..8e9e8d1d73 100644 --- a/tests/test_statepoint_restart/test_statepoint_restart.py +++ b/tests/test_statepoint_restart/test_statepoint_restart.py @@ -21,7 +21,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 test_restart_form1(): @@ -36,7 +36,7 @@ def test_results_form1(): 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 test_restart_form2(): @@ -51,7 +51,7 @@ def test_results_form2(): 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(): diff --git a/tests/test_statepoint_sourcesep/test_statepoint_sourcesep.py b/tests/test_statepoint_sourcesep/test_statepoint_sourcesep.py index 8024d50918..82b4a051bb 100644 --- a/tests/test_statepoint_sourcesep/test_statepoint_sourcesep.py +++ b/tests/test_statepoint_sourcesep/test_statepoint_sourcesep.py @@ -24,7 +24,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(): diff --git a/tests/test_survival_biasing/test_survival_biasing.py b/tests/test_survival_biasing/test_survival_biasing.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_survival_biasing/test_survival_biasing.py +++ b/tests/test_survival_biasing/test_survival_biasing.py @@ -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(): diff --git a/tests/test_tally_assumesep/test_tally_assumesep.py b/tests/test_tally_assumesep/test_tally_assumesep.py index 1cb3b704be..cf8b2e51ce 100644 --- a/tests/test_tally_assumesep/test_tally_assumesep.py +++ b/tests/test_tally_assumesep/test_tally_assumesep.py @@ -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(): diff --git a/tests/test_trace/test_trace.py b/tests/test_trace/test_trace.py index 38b2abff02..c708108256 100644 --- a/tests/test_trace/test_trace.py +++ b/tests/test_trace/test_trace.py @@ -25,7 +25,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(): diff --git a/tests/test_translation/test_translation.py b/tests/test_translation/test_translation.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_translation/test_translation.py +++ b/tests/test_translation/test_translation.py @@ -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(): diff --git a/tests/test_uniform_fs/test_uniform_fs.py b/tests/test_uniform_fs/test_uniform_fs.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_uniform_fs/test_uniform_fs.py +++ b/tests/test_uniform_fs/test_uniform_fs.py @@ -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(): diff --git a/tests/test_universe/test_universe.py b/tests/test_universe/test_universe.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_universe/test_universe.py +++ b/tests/test_universe/test_universe.py @@ -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(): diff --git a/tests/test_void/test_void.py b/tests/test_void/test_void.py index 2f43cbd3f6..44e8b681c2 100644 --- a/tests/test_void/test_void.py +++ b/tests/test_void/test_void.py @@ -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():