From 8838d4dd498c8f66ea4237fe8a79a5f77d6f95c9 Mon Sep 17 00:00:00 2001 From: Vytis Banaitis Date: Wed, 1 Feb 2017 18:41:56 +0200 Subject: Refs #23919 -- Replaced kwargs.pop() with keyword-only arguments. --- tests/forms_tests/tests/test_formsets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/forms_tests') diff --git a/tests/forms_tests/tests/test_formsets.py b/tests/forms_tests/tests/test_formsets.py index 26d9e15605..f552f689dc 100644 --- a/tests/forms_tests/tests/test_formsets.py +++ b/tests/forms_tests/tests/test_formsets.py @@ -56,8 +56,8 @@ SplitDateTimeFormSet = formset_factory(SplitDateTimeForm) class CustomKwargForm(Form): - def __init__(self, *args, **kwargs): - self.custom_kwarg = kwargs.pop('custom_kwarg') + def __init__(self, *args, custom_kwarg, **kwargs): + self.custom_kwarg = custom_kwarg super().__init__(*args, **kwargs) -- cgit v1.3