Update UT 7th
@@ -87,14 +87,14 @@ def normalize_tuple(value, n, name, allow_zero=False):
raise ValueError(error_msg)
if allow_zero:
- unqualified_values = [v for v in value_tuple if v < 0]
+ unqualified_values = {v for v in value_tuple if v < 0}
req_msg = '>= 0'
else:
- unqualified_values = [v for v in value_tuple if v <= 0]
+ unqualified_values = {v for v in value_tuple if v <= 0}
req_msg = '> 0'
if len(unqualified_values) > 0:
- error_msg += (f' including {set(unqualified_values)}'
+ error_msg += (f' including {unqualified_values}'
f' that does not satisfy the requirement `{req_msg}`.')
raise ValueError(error_msg)
