summaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'run_tests.py')
-rwxr-xr-xrun_tests.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/run_tests.py b/run_tests.py
index bea6625..6007344 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -115,7 +115,6 @@ except Exception as error:
else:
logger.info("Numpy %s", numpy.version.version)
-
try:
import h5py
except Exception as error:
@@ -314,10 +313,10 @@ def import_project_module(project_name, project_dir):
if "--installed" in sys.argv:
try:
module = importer(project_name)
- except ImportError:
- raise ImportError(
- "%s not installed: Cannot run tests on installed version" %
- PROJECT_NAME)
+ except Exception:
+ logger.error("Cannot run tests on installed version: %s not installed or raising error.",
+ project_name)
+ raise
else: # Use built source
build_dir = build_project(project_name, project_dir)
if build_dir is None: