From 2e222dca52894676710ba4503c62e50c0d5709f0 Mon Sep 17 00:00:00 2001 From: Danilo Ansaloni Date: Wed, 8 May 2024 18:32:03 +0200 Subject: [PATCH] Make assertion failure more informative. --- src/mx/_impl/mx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mx/_impl/mx.py b/src/mx/_impl/mx.py index 8a8e25fb..7249276a 100755 --- a/src/mx/_impl/mx.py +++ b/src/mx/_impl/mx.py @@ -1180,7 +1180,7 @@ def nestedsuites_dirname(self): def _search_dir(self, searchDir, suite_import): if suite_import.suite_dir: sd = _is_suite_dir(suite_import.suite_dir, _mxDirName(suite_import.name)) - assert sd + assert sd, f"An mx suite or a dynamic import searched for '{suite_import}', but '{suite_import.suite_dir}' is not a valid mx suite dir." return sd if not exists(searchDir): @@ -18181,7 +18181,7 @@ def alarm_handler(signum, frame): _CACHE_DIR = get_env('MX_CACHE_DIR', join(dot_mx_dir(), 'cache')) # The version must be updated for every PR (checked in CI) and the comment should reflect the PR's issue -version = VersionSpec("7.25.1") # Avoid assuming there’s a PATH variable defined +version = VersionSpec("7.25.2") # GR-53991 _mx_start_datetime = datetime.utcnow()