diff --git a/tests/run_tests.py b/tests/run_tests.py index 70ea4c3dc9..338732c142 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -128,10 +128,8 @@ class Test(object): if self.mpi: if os.path.exists(os.path.join(MPI_DIR, 'bin', 'mpifort')): self.fc = os.path.join(MPI_DIR, 'bin', 'mpifort') - elif os.path.exists(os.path.join(MPI_DIR, 'bin', 'mpif90')): - self.fc = os.path.join(MPI_DIR, 'bin', 'mpif90') else: - raise RuntimeError('Cannot find an MPI Fortran compiler') + self.fc = os.path.join(MPI_DIR, 'bin', 'mpif90') else: self.fc = FC