File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ def _get_case_getter_s(f,
397397 names , param_ids , all_param_values_combinations = gen
398398
399399 if isinstance (names , str ):
400- # then this is a string formatter creating the names
400+ # then this is a string formatter creating the names. Create the corresponding callable
401401 _formatter = names
402402 def names (** params ):
403403 try :
@@ -407,6 +407,7 @@ def names(**params):
407407
408408 nb_cases_generated = len (all_param_values_combinations )
409409 if not callable (names ):
410+ # This is an explicit list
410411 if len (names ) != nb_cases_generated :
411412 raise ValueError ("An explicit list of names has been provided but it has not the same length (%s) than"
412413 " the number of cases to be generated (%s)" % (len (names ), nb_cases_generated ))
You can’t perform that action at this time.
0 commit comments