Skip to content

Commit a0caf03

Browse files
committed
fix lambda unittests of args and kwargs
1 parent af7ce77 commit a0caf03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_test_function_definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ class TestLambdaFunctionSpec2(TestFunctionSpec2):
842842
def setUp(self):
843843
super().setUp()
844844
self.data['DC_SOLUTION'] = "lambda x, y = 4, z = ('a', 'b'), *args, **kwargs: [x, y, *z, *args]"
845-
for attr in ['MULTI_SCT', 'SCT_CHECK', 'SCT_KW', 'SCT_POS', 'SCT_CHECK_ONE', 'SCT_CHECK_Y', 'SCT_CHECK_X']:
845+
for attr in ['MULTI_SCT', 'SCT_CHECK', 'SCT_KW', 'SCT_POS', 'SCT_CHECK_ONE', 'SCT_CHECK_Y', 'SCT_CHECK_X', 'SCT_CHECK_ARGS', 'SCT_CHECK_KWARGS']:
846846
lam_sct = getattr(self, attr).replace("check_function_def('my_fun')", 'check_lambda_function(0)')
847847
setattr(self, attr, lam_sct)
848848

0 commit comments

Comments
 (0)