From 8be90d20b5abdd01d47b4ca6077a1e0063a69de0 Mon Sep 17 00:00:00 2001 From: Mark Harfouche Date: Wed, 4 Dec 2024 07:11:44 -0500 Subject: [PATCH] Update run_test.py --- recipe/run_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipe/run_test.py b/recipe/run_test.py index 9243eb6..cb711ce 100644 --- a/recipe/run_test.py +++ b/recipe/run_test.py @@ -1,4 +1,5 @@ import os +import sys os.environ['OMPI_MCA_plm'] = 'isolated' os.environ['OMPI_MCA_btl_vader_single_copy_mechanism'] = 'none' @@ -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") @@ -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)))