File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -91,10 +91,14 @@ class _ParametrizationMark:
9191
9292 def __init__ (self , mark ):
9393 bound = get_parametrize_signature ().bind (* mark .args , ** mark .kwargs )
94- remaining_kwargs = bound .arguments ['kwargs' ]
95- if len (remaining_kwargs ) > 0 :
96- warn ("parametrize kwargs not taken into account: %s. Please report it at"
97- " https://github.com/smarie/python-pytest-cases/issues" % remaining_kwargs )
94+ try :
95+ remaining_kwargs = bound .arguments ['kwargs' ]
96+ except KeyError :
97+ pass
98+ else :
99+ if len (remaining_kwargs ) > 0 :
100+ warn ("parametrize kwargs not taken into account: %s. Please report it at"
101+ " https://github.com/smarie/python-pytest-cases/issues" % remaining_kwargs )
98102 self .param_names = get_param_argnames_as_list (bound .arguments ['argnames' ])
99103 self .param_values = bound .arguments ['argvalues' ]
100104 try :
You can’t perform that action at this time.
0 commit comments