diff --git a/tests/run_tests.py b/tests/run_tests.py index 1679fa5c36..3550ad7cb1 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -121,7 +121,8 @@ class Test(object): self.skipped = False self.valgrind_cmd = "" self.gcov_cmd = "" - self.cmake = ['cmake', '-H..', '-Bbuild'] + self.cmake = ['cmake', '-H..', '-Bbuild', + '-DPYTHON_EXECUTABLE=' + sys.executable] # Check for MPI/HDF5 if self.mpi and not self.hdf5: diff --git a/tests/test_basic/test_basic.py b/tests/test_basic/test_basic.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_basic/test_basic.py +++ b/tests/test_basic/test_basic.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_cmfd_feed/test_cmfd_feed.py b/tests/test_cmfd_feed/test_cmfd_feed.py index 14623a5ee3..0a51dd6f80 100644 --- a/tests/test_cmfd_feed/test_cmfd_feed.py +++ b/tests/test_cmfd_feed/test_cmfd_feed.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -36,7 +37,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.20.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_cmfd_nofeed/test_cmfd_nofeed.py b/tests/test_cmfd_nofeed/test_cmfd_nofeed.py index 34892c53aa..3a1b233ff2 100644 --- a/tests/test_cmfd_nofeed/test_cmfd_nofeed.py +++ b/tests/test_cmfd_nofeed/test_cmfd_nofeed.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -37,7 +38,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.20.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_confidence_intervals/test_confidence_intervals.py b/tests/test_confidence_intervals/test_confidence_intervals.py index d1982f7fae..5c61e70d28 100644 --- a/tests/test_confidence_intervals/test_confidence_intervals.py +++ b/tests/test_confidence_intervals/test_confidence_intervals.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_created_output(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_density_atombcm/test_density_atombcm.py b/tests/test_density_atombcm/test_density_atombcm.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_density_atombcm/test_density_atombcm.py +++ b/tests/test_density_atombcm/test_density_atombcm.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_density_atomcm3/test_density_atomcm3.py b/tests/test_density_atomcm3/test_density_atomcm3.py index 26d389c21e..571f311994 100644 --- a/tests/test_density_atomcm3/test_density_atomcm3.py +++ b/tests/test_density_atomcm3/test_density_atomcm3.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_density_kgm3/test_density_kgm3.py b/tests/test_density_kgm3/test_density_kgm3.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_density_kgm3/test_density_kgm3.py +++ b/tests/test_density_kgm3/test_density_kgm3.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_density_sum/test_density_sum.py b/tests/test_density_sum/test_density_sum.py index b3384291b2..6363a2374c 100644 --- a/tests/test_density_sum/test_density_sum.py +++ b/tests/test_density_sum/test_density_sum.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob('statepoint.10.*') - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_eigenvalue_genperbatch/test_eigenvalue_genperbatch.py b/tests/test_eigenvalue_genperbatch/test_eigenvalue_genperbatch.py index 3ce7bf2db0..2898e8bbc3 100644 --- a/tests/test_eigenvalue_genperbatch/test_eigenvalue_genperbatch.py +++ b/tests/test_eigenvalue_genperbatch/test_eigenvalue_genperbatch.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.7.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') 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 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_eigenvalue_no_inactive/test_eigenvalue_no_inactive.py +++ b/tests/test_eigenvalue_no_inactive/test_eigenvalue_no_inactive.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_energy_grid/test_energy_grid.py b/tests/test_energy_grid/test_energy_grid.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_energy_grid/test_energy_grid.py +++ b/tests/test_energy_grid/test_energy_grid.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_entropy/test_entropy.py b/tests/test_entropy/test_entropy.py index 2f4196b283..cc153c832f 100644 --- a/tests/test_entropy/test_entropy.py +++ b/tests/test_entropy/test_entropy.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -32,7 +33,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_filter_cell/test_filter_cell.py b/tests/test_filter_cell/test_filter_cell.py index 962a1ca26c..0130cd7a06 100644 --- a/tests/test_filter_cell/test_filter_cell.py +++ b/tests/test_filter_cell/test_filter_cell.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_filter_cellborn/test_filter_cellborn.py b/tests/test_filter_cellborn/test_filter_cellborn.py index 78132bcfc4..76b1b433e7 100644 --- a/tests/test_filter_cellborn/test_filter_cellborn.py +++ b/tests/test_filter_cellborn/test_filter_cellborn.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_filter_distribcell/test_filter_distribcell.py b/tests/test_filter_distribcell/test_filter_distribcell.py index 3b39af381a..d389bb5a65 100644 --- a/tests/test_filter_distribcell/test_filter_distribcell.py +++ b/tests/test_filter_distribcell/test_filter_distribcell.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -79,7 +80,7 @@ def test_results(): statepoint.append(glob.glob(cwd + '/case-1/statepoint.1.*')) statepoint.append(glob.glob(cwd + '/case-2/statepoint.1.*')) statepoint.append(glob.glob(cwd + '/case-3/statepoint.3.*')) - call(['python', 'results.py', statepoint.pop()[0], statepoint.pop()[0], statepoint.pop()[0]]) + call([sys.executable, 'results.py', statepoint.pop()[0], statepoint.pop()[0], statepoint.pop()[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_filter_energy/test_filter_energy.py b/tests/test_filter_energy/test_filter_energy.py index 962a1ca26c..0130cd7a06 100644 --- a/tests/test_filter_energy/test_filter_energy.py +++ b/tests/test_filter_energy/test_filter_energy.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_filter_energyout/test_filter_energyout.py b/tests/test_filter_energyout/test_filter_energyout.py index 962a1ca26c..0130cd7a06 100644 --- a/tests/test_filter_energyout/test_filter_energyout.py +++ b/tests/test_filter_energyout/test_filter_energyout.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') 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 962a1ca26c..0130cd7a06 100644 --- a/tests/test_filter_group_transfer/test_filter_group_transfer.py +++ b/tests/test_filter_group_transfer/test_filter_group_transfer.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_filter_material/test_filter_material.py b/tests/test_filter_material/test_filter_material.py index 962a1ca26c..0130cd7a06 100644 --- a/tests/test_filter_material/test_filter_material.py +++ b/tests/test_filter_material/test_filter_material.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') 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 962a1ca26c..0130cd7a06 100644 --- a/tests/test_filter_mesh_2d/test_filter_mesh_2d.py +++ b/tests/test_filter_mesh_2d/test_filter_mesh_2d.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') 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 962a1ca26c..0130cd7a06 100644 --- a/tests/test_filter_mesh_3d/test_filter_mesh_3d.py +++ b/tests/test_filter_mesh_3d/test_filter_mesh_3d.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_filter_universe/test_filter_universe.py b/tests/test_filter_universe/test_filter_universe.py index 962a1ca26c..0130cd7a06 100644 --- a/tests/test_filter_universe/test_filter_universe.py +++ b/tests/test_filter_universe/test_filter_universe.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_fixed_source/test_fixed_source.py b/tests/test_fixed_source/test_fixed_source.py index 962a1ca26c..0130cd7a06 100644 --- a/tests/test_fixed_source/test_fixed_source.py +++ b/tests/test_fixed_source/test_fixed_source.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_infinite_cell/test_infinite_cell.py b/tests/test_infinite_cell/test_infinite_cell.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_infinite_cell/test_infinite_cell.py +++ b/tests/test_infinite_cell/test_infinite_cell.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_lattice/test_lattice.py b/tests/test_lattice/test_lattice.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_lattice/test_lattice.py +++ b/tests/test_lattice/test_lattice.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_lattice_hex/test_lattice_hex.py b/tests/test_lattice_hex/test_lattice_hex.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_lattice_hex/test_lattice_hex.py +++ b/tests/test_lattice_hex/test_lattice_hex.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_lattice_mixed/test_lattice_mixed.py b/tests/test_lattice_mixed/test_lattice_mixed.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_lattice_mixed/test_lattice_mixed.py +++ b/tests/test_lattice_mixed/test_lattice_mixed.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_lattice_multiple/test_lattice_multiple.py b/tests/test_lattice_multiple/test_lattice_multiple.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_lattice_multiple/test_lattice_multiple.py +++ b/tests/test_lattice_multiple/test_lattice_multiple.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_natural_element/test_natural_element.py b/tests/test_natural_element/test_natural_element.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_natural_element/test_natural_element.py +++ b/tests/test_natural_element/test_natural_element.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_output/test_output.py b/tests/test_output/test_output.py index 1ea9e3dbf2..03adf538e8 100644 --- a/tests/test_output/test_output.py +++ b/tests/test_output/test_output.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -41,7 +42,7 @@ def test_statepoint_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_particle_restart_eigval/test_particle_restart_eigval.py b/tests/test_particle_restart_eigval/test_particle_restart_eigval.py index 1aa7035658..6c8016dd27 100644 --- a/tests/test_particle_restart_eigval/test_particle_restart_eigval.py +++ b/tests/test_particle_restart_eigval/test_particle_restart_eigval.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_restart(): def test_results(): particle = glob.glob(os.path.join(cwd, 'particle_12_616.*')) - call(['python', 'results.py', particle[0]]) + call([sys.executable, 'results.py', particle[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_particle_restart_fixed/test_particle_restart_fixed.py b/tests/test_particle_restart_fixed/test_particle_restart_fixed.py index 11ee1fad0c..ee6cfad532 100644 --- a/tests/test_particle_restart_fixed/test_particle_restart_fixed.py +++ b/tests/test_particle_restart_fixed/test_particle_restart_fixed.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_restart(): def test_results(): particle = glob.glob(os.path.join(cwd, 'particle_7_6144.*')) - call(['python', 'results.py', particle[0]]) + call([sys.executable, 'results.py', particle[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_plot_background/test_plot_background.py b/tests/test_plot_background/test_plot_background.py index 92afb9a48a..2330724005 100644 --- a/tests/test_plot_background/test_plot_background.py +++ b/tests/test_plot_background/test_plot_background.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE from optparse import OptionParser diff --git a/tests/test_plot_basis/test_plot_basis.py b/tests/test_plot_basis/test_plot_basis.py index 81d197b50d..680473b512 100644 --- a/tests/test_plot_basis/test_plot_basis.py +++ b/tests/test_plot_basis/test_plot_basis.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE from optparse import OptionParser diff --git a/tests/test_plot_colspec/test_plot_colspec.py b/tests/test_plot_colspec/test_plot_colspec.py index 92afb9a48a..2330724005 100644 --- a/tests/test_plot_colspec/test_plot_colspec.py +++ b/tests/test_plot_colspec/test_plot_colspec.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE from optparse import OptionParser diff --git a/tests/test_plot_mask/test_plot_mask.py b/tests/test_plot_mask/test_plot_mask.py index 81d197b50d..680473b512 100644 --- a/tests/test_plot_mask/test_plot_mask.py +++ b/tests/test_plot_mask/test_plot_mask.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE from optparse import OptionParser diff --git a/tests/test_ptables_off/test_ptables_off.py b/tests/test_ptables_off/test_ptables_off.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_ptables_off/test_ptables_off.py +++ b/tests/test_ptables_off/test_ptables_off.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_reflective_cone/test_reflective_cone.py b/tests/test_reflective_cone/test_reflective_cone.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_reflective_cone/test_reflective_cone.py +++ b/tests/test_reflective_cone/test_reflective_cone.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_reflective_cylinder/test_reflective_cylinder.py b/tests/test_reflective_cylinder/test_reflective_cylinder.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_reflective_cylinder/test_reflective_cylinder.py +++ b/tests/test_reflective_cylinder/test_reflective_cylinder.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_reflective_plane/test_reflective_plane.py b/tests/test_reflective_plane/test_reflective_plane.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_reflective_plane/test_reflective_plane.py +++ b/tests/test_reflective_plane/test_reflective_plane.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_reflective_sphere/test_reflective_sphere.py b/tests/test_reflective_sphere/test_reflective_sphere.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_reflective_sphere/test_reflective_sphere.py +++ b/tests/test_reflective_sphere/test_reflective_sphere.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_resonance_scattering/test_resonance_scattering.py b/tests/test_resonance_scattering/test_resonance_scattering.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_resonance_scattering/test_resonance_scattering.py +++ b/tests/test_resonance_scattering/test_resonance_scattering.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_rotation/test_rotation.py b/tests/test_rotation/test_rotation.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_rotation/test_rotation.py +++ b/tests/test_rotation/test_rotation.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_salphabeta/test_salphabeta.py b/tests/test_salphabeta/test_salphabeta.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_salphabeta/test_salphabeta.py +++ b/tests/test_salphabeta/test_salphabeta.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_salphabeta_multiple/test_salphabeta_multiple.py b/tests/test_salphabeta_multiple/test_salphabeta_multiple.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_salphabeta_multiple/test_salphabeta_multiple.py +++ b/tests/test_salphabeta_multiple/test_salphabeta_multiple.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_score_MT/test_score_MT.py b/tests/test_score_MT/test_score_MT.py index 962a1ca26c..0130cd7a06 100644 --- a/tests/test_score_MT/test_score_MT.py +++ b/tests/test_score_MT/test_score_MT.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_score_absorption/test_score_absorption.py b/tests/test_score_absorption/test_score_absorption.py index 962a1ca26c..0130cd7a06 100644 --- a/tests/test_score_absorption/test_score_absorption.py +++ b/tests/test_score_absorption/test_score_absorption.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_score_current/test_score_current.py b/tests/test_score_current/test_score_current.py index 962a1ca26c..0130cd7a06 100644 --- a/tests/test_score_current/test_score_current.py +++ b/tests/test_score_current/test_score_current.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_score_events/test_score_events.py b/tests/test_score_events/test_score_events.py index 962a1ca26c..0130cd7a06 100644 --- a/tests/test_score_events/test_score_events.py +++ b/tests/test_score_events/test_score_events.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_score_fission/test_score_fission.py b/tests/test_score_fission/test_score_fission.py index 962a1ca26c..0130cd7a06 100644 --- a/tests/test_score_fission/test_score_fission.py +++ b/tests/test_score_fission/test_score_fission.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_score_flux/test_score_flux.py b/tests/test_score_flux/test_score_flux.py index 962a1ca26c..0130cd7a06 100644 --- a/tests/test_score_flux/test_score_flux.py +++ b/tests/test_score_flux/test_score_flux.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_score_flux_yn/test_score_flux_yn.py b/tests/test_score_flux_yn/test_score_flux_yn.py index 6e54389fc1..fd3b3ed5b2 100644 --- a/tests/test_score_flux_yn/test_score_flux_yn.py +++ b/tests/test_score_flux_yn/test_score_flux_yn.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_score_kappafission/test_score_kappafission.py b/tests/test_score_kappafission/test_score_kappafission.py index 962a1ca26c..0130cd7a06 100644 --- a/tests/test_score_kappafission/test_score_kappafission.py +++ b/tests/test_score_kappafission/test_score_kappafission.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_score_nufission/test_score_nufission.py b/tests/test_score_nufission/test_score_nufission.py index 962a1ca26c..0130cd7a06 100644 --- a/tests/test_score_nufission/test_score_nufission.py +++ b/tests/test_score_nufission/test_score_nufission.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_score_nuscatter/test_score_nuscatter.py b/tests/test_score_nuscatter/test_score_nuscatter.py index 962a1ca26c..0130cd7a06 100644 --- a/tests/test_score_nuscatter/test_score_nuscatter.py +++ b/tests/test_score_nuscatter/test_score_nuscatter.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_score_nuscatter_n/test_score_nuscatter_n.py b/tests/test_score_nuscatter_n/test_score_nuscatter_n.py index 6e54389fc1..fd3b3ed5b2 100644 --- a/tests/test_score_nuscatter_n/test_score_nuscatter_n.py +++ b/tests/test_score_nuscatter_n/test_score_nuscatter_n.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_score_nuscatter_pn/test_score_nuscatter_pn.py b/tests/test_score_nuscatter_pn/test_score_nuscatter_pn.py index 6e54389fc1..fd3b3ed5b2 100644 --- a/tests/test_score_nuscatter_pn/test_score_nuscatter_pn.py +++ b/tests/test_score_nuscatter_pn/test_score_nuscatter_pn.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_score_nuscatter_yn/test_score_nuscatter_yn.py b/tests/test_score_nuscatter_yn/test_score_nuscatter_yn.py index 6e54389fc1..fd3b3ed5b2 100644 --- a/tests/test_score_nuscatter_yn/test_score_nuscatter_yn.py +++ b/tests/test_score_nuscatter_yn/test_score_nuscatter_yn.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_score_scatter/test_score_scatter.py b/tests/test_score_scatter/test_score_scatter.py index 962a1ca26c..0130cd7a06 100644 --- a/tests/test_score_scatter/test_score_scatter.py +++ b/tests/test_score_scatter/test_score_scatter.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') 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 962a1ca26c..0130cd7a06 100644 --- a/tests/test_score_scatter_n/test_score_scatter_n.py +++ b/tests/test_score_scatter_n/test_score_scatter_n.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') 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 962a1ca26c..0130cd7a06 100644 --- a/tests/test_score_scatter_pn/test_score_scatter_pn.py +++ b/tests/test_score_scatter_pn/test_score_scatter_pn.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_score_scatter_yn/test_score_scatter_yn.py b/tests/test_score_scatter_yn/test_score_scatter_yn.py index 6e54389fc1..fd3b3ed5b2 100644 --- a/tests/test_score_scatter_yn/test_score_scatter_yn.py +++ b/tests/test_score_scatter_yn/test_score_scatter_yn.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_score_total/test_score_total.py b/tests/test_score_total/test_score_total.py index 962a1ca26c..0130cd7a06 100644 --- a/tests/test_score_total/test_score_total.py +++ b/tests/test_score_total/test_score_total.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_score_total_yn/test_score_total_yn.py b/tests/test_score_total_yn/test_score_total_yn.py index 6e54389fc1..fd3b3ed5b2 100644 --- a/tests/test_score_total_yn/test_score_total_yn.py +++ b/tests/test_score_total_yn/test_score_total_yn.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_seed/test_seed.py b/tests/test_seed/test_seed.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_seed/test_seed.py +++ b/tests/test_seed/test_seed.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') 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 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_source_angle_mono/test_source_angle_mono.py +++ b/tests/test_source_angle_mono/test_source_angle_mono.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') 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 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_source_energy_maxwell/test_source_energy_maxwell.py +++ b/tests/test_source_energy_maxwell/test_source_energy_maxwell.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') 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 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_source_energy_mono/test_source_energy_mono.py +++ b/tests/test_source_energy_mono/test_source_energy_mono.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_source_file/test_source_file.py b/tests/test_source_file/test_source_file.py index 43e8963ecf..b85f70d537 100644 --- a/tests/test_source_file/test_source_file.py +++ b/tests/test_source_file/test_source_file.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -86,7 +87,7 @@ def test_run2(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_source_point/test_source_point.py b/tests/test_source_point/test_source_point.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_source_point/test_source_point.py +++ b/tests/test_source_point/test_source_point.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_sourcepoint_batch/test_sourcepoint_batch.py b/tests/test_sourcepoint_batch/test_sourcepoint_batch.py index 4258a54de7..7f225540f9 100644 --- a/tests/test_sourcepoint_batch/test_sourcepoint_batch.py +++ b/tests/test_sourcepoint_batch/test_sourcepoint_batch.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_statepoint_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.08.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_sourcepoint_interval/test_sourcepoint_interval.py b/tests/test_sourcepoint_interval/test_sourcepoint_interval.py index 2a089747f6..4b75ed68e1 100644 --- a/tests/test_sourcepoint_interval/test_sourcepoint_interval.py +++ b/tests/test_sourcepoint_interval/test_sourcepoint_interval.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_statepoint_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.08.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_sourcepoint_latest/test_sourcepoint_latest.py b/tests/test_sourcepoint_latest/test_sourcepoint_latest.py index 8ce55f2c76..44f1fd300b 100644 --- a/tests/test_sourcepoint_latest/test_sourcepoint_latest.py +++ b/tests/test_sourcepoint_latest/test_sourcepoint_latest.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -35,7 +36,7 @@ def test_statepoint_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_sourcepoint_restart/test_sourcepoint_restart.py b/tests/test_sourcepoint_restart/test_sourcepoint_restart.py index 47033b0121..706f24e969 100644 --- a/tests/test_sourcepoint_restart/test_sourcepoint_restart.py +++ b/tests/test_sourcepoint_restart/test_sourcepoint_restart.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -35,7 +36,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') @@ -62,7 +63,7 @@ def test_created_statepoint_form1(): def test_results_form1(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') @@ -89,7 +90,7 @@ def test_created_statepoint_form2(): def test_results_form2(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') @@ -112,7 +113,7 @@ def test_created_statepoint_serial(): def test_results_serial(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_statepoint_batch/test_statepoint_batch.py b/tests/test_statepoint_batch/test_statepoint_batch.py index e1951d23fd..4298536c52 100644 --- a/tests/test_statepoint_batch/test_statepoint_batch.py +++ b/tests/test_statepoint_batch/test_statepoint_batch.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -39,7 +40,7 @@ def test_statepoints_exist(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.09.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_statepoint_interval/test_statepoint_interval.py b/tests/test_statepoint_interval/test_statepoint_interval.py index 1099566e58..c70d547d8c 100644 --- a/tests/test_statepoint_interval/test_statepoint_interval.py +++ b/tests/test_statepoint_interval/test_statepoint_interval.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys import glob from subprocess import Popen, STDOUT, PIPE, call import filecmp @@ -48,7 +49,7 @@ def test_statepoints_exist(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_statepoint_restart/test_statepoint_restart.py b/tests/test_statepoint_restart/test_statepoint_restart.py index a26a94442a..294e8b812b 100644 --- a/tests/test_statepoint_restart/test_statepoint_restart.py +++ b/tests/test_statepoint_restart/test_statepoint_restart.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.07.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') @@ -56,7 +57,7 @@ def test_created_statepoint_form1(): def test_results_form1(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.07.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') @@ -81,7 +82,7 @@ def test_created_statepoint_form2(): def test_results_form2(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.07.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') @@ -102,7 +103,7 @@ def test_created_statepoint_serial(): def test_results_serial(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.07.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_statepoint_sourcesep/test_statepoint_sourcesep.py b/tests/test_statepoint_sourcesep/test_statepoint_sourcesep.py index d9a42310db..b79743ae98 100644 --- a/tests/test_statepoint_sourcesep/test_statepoint_sourcesep.py +++ b/tests/test_statepoint_sourcesep/test_statepoint_sourcesep.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -35,7 +36,7 @@ def test_statepoint_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_survival_biasing/test_survival_biasing.py b/tests/test_survival_biasing/test_survival_biasing.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_survival_biasing/test_survival_biasing.py +++ b/tests/test_survival_biasing/test_survival_biasing.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_tally_assumesep/test_tally_assumesep.py b/tests/test_tally_assumesep/test_tally_assumesep.py index 962a1ca26c..0130cd7a06 100644 --- a/tests/test_tally_assumesep/test_tally_assumesep.py +++ b/tests/test_tally_assumesep/test_tally_assumesep.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -34,7 +35,7 @@ def test_output_exists(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_tally_nuclides/test_tally_nuclides.py b/tests/test_tally_nuclides/test_tally_nuclides.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_tally_nuclides/test_tally_nuclides.py +++ b/tests/test_tally_nuclides/test_tally_nuclides.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_trace/test_trace.py b/tests/test_trace/test_trace.py index eab3f922aa..bfa5163b89 100644 --- a/tests/test_trace/test_trace.py +++ b/tests/test_trace/test_trace.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -33,7 +34,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_track_output/test_track_output.py b/tests/test_track_output/test_track_output.py index e37e2fc0db..089efbfb22 100644 --- a/tests/test_track_output/test_track_output.py +++ b/tests/test_track_output/test_track_output.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -32,7 +33,7 @@ def test_created_outputs(): 'Track files not a binary or hdf5 file' def test_outputs(): - call(['python', 'results.py']) + call([sys.executable, 'results.py']) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_translation/test_translation.py b/tests/test_translation/test_translation.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_translation/test_translation.py +++ b/tests/test_translation/test_translation.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_trigger_batch_interval/test_trigger_batch_interval.py b/tests/test_trigger_batch_interval/test_trigger_batch_interval.py index b2c3a5ae7b..c82edb5b5a 100644 --- a/tests/test_trigger_batch_interval/test_trigger_batch_interval.py +++ b/tests/test_trigger_batch_interval/test_trigger_batch_interval.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.19.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_trigger_no_batch_interval/test_trigger_no_batch_interval.py b/tests/test_trigger_no_batch_interval/test_trigger_no_batch_interval.py index b2c3a5ae7b..c82edb5b5a 100644 --- a/tests/test_trigger_no_batch_interval/test_trigger_no_batch_interval.py +++ b/tests/test_trigger_no_batch_interval/test_trigger_no_batch_interval.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.19.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_trigger_no_status/test_trigger_no_status.py b/tests/test_trigger_no_status/test_trigger_no_status.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_trigger_no_status/test_trigger_no_status.py +++ b/tests/test_trigger_no_status/test_trigger_no_status.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_trigger_tallies/test_trigger_tallies.py b/tests/test_trigger_tallies/test_trigger_tallies.py index cb973cb4d2..940d5dc176 100644 --- a/tests/test_trigger_tallies/test_trigger_tallies.py +++ b/tests/test_trigger_tallies/test_trigger_tallies.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.15.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_uniform_fs/test_uniform_fs.py b/tests/test_uniform_fs/test_uniform_fs.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_uniform_fs/test_uniform_fs.py +++ b/tests/test_uniform_fs/test_uniform_fs.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_union_energy_grids/test_union_energy_grids.py b/tests/test_union_energy_grids/test_union_energy_grids.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_union_energy_grids/test_union_energy_grids.py +++ b/tests/test_union_energy_grids/test_union_energy_grids.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_universe/test_universe.py b/tests/test_universe/test_universe.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_universe/test_universe.py +++ b/tests/test_universe/test_universe.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat') diff --git a/tests/test_void/test_void.py b/tests/test_void/test_void.py index 6fdbf87459..ab227e2ba3 100644 --- a/tests/test_void/test_void.py +++ b/tests/test_void/test_void.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import sys from subprocess import Popen, STDOUT, PIPE, call import filecmp import glob @@ -31,7 +32,7 @@ def test_created_statepoint(): def test_results(): statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*')) - call(['python', 'results.py', statepoint[0]]) + call([sys.executable, 'results.py', statepoint[0]]) compare = filecmp.cmp('results_test.dat', 'results_true.dat') if not compare: os.rename('results_test.dat', 'results_error.dat')