Skip to content

Commit

Permalink
Update run_test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk authored Dec 4, 2024
1 parent 0db2605 commit 8be90d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipe/run_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import sys

os.environ['OMPI_MCA_plm'] = 'isolated'
os.environ['OMPI_MCA_btl_vader_single_copy_mechanism'] = 'none'
Expand Down Expand Up @@ -31,7 +32,6 @@
have_mpi = h5py.get_config().mpi
assert have_mpi == should_have_mpi, "Expected mpi=%r, got %r" % (should_have_mpi, have_mpi)

from sys import exit
test_args = []
if have_mpi:
test_args.append("--with-mpi")
Expand All @@ -46,4 +46,4 @@
):
test_args.extend(["-k", '"(not test_unicode_hdf5_python_consistent)"'])

exit(h5py.run_tests(" ".join(test_args)))
sys.exit(h5py.run_tests(" ".join(test_args)))

0 comments on commit 8be90d2

Please sign in to comment.