Skip to content

Commit 08fe86c

Browse files
author
Sylvain MARIE
committed
Minor edit to ease debugging: using a normal function instead of a lambda
1 parent 402dbaa commit 08fe86c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pytest_cases/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,9 +738,10 @@ def _get_case_getter_s(f,
738738
names, param_ids, all_param_values_combinations = gen
739739

740740
if isinstance(names, str):
741-
# then this is a string formatter
741+
# then this is a string formatter creating the names
742742
_formatter = names
743-
names = lambda **params: _formatter.format(**params)
743+
def names(**params):
744+
return _formatter.format(**params)
744745

745746
nb_cases_generated = len(all_param_values_combinations)
746747
if not callable(names):

0 commit comments

Comments
 (0)