From 3d156630e480fc6e671a530a307fc3067ad598a7 Mon Sep 17 00:00:00 2001 From: "Chi Song (from Dev Box)" Date: Tue, 8 Oct 2024 09:30:39 -0700 Subject: [PATCH] search_space: fix assert False failed. Only None is not allowed, the False is a valid option. --- lisa/search_space.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lisa/search_space.py b/lisa/search_space.py index 0a326fdf8..57834851c 100644 --- a/lisa/search_space.py +++ b/lisa/search_space.py @@ -542,10 +542,10 @@ def generate_min_capability_setspace_by_priority( if item in requirement and item in capability: min_cap = item break - assert min_cap, ( - "Cannot find min capability on data path, " - f"requirement: {requirement}" - f"capability: {capability}" + assert min_cap is not None, ( + "Cannot find min capability, " + f"requirement: '{requirement}', " + f"capability: '{capability}'." ) return min_cap