Skip to content

Commit

Permalink
[GR-53991] Make assertion failure more informative.
Browse files Browse the repository at this point in the history
PullRequest: mx/1793
  • Loading branch information
ansalond committed May 8, 2024
2 parents c970991 + 2e222dc commit 312009d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mx/_impl/mx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 312009d

Please sign in to comment.