diff options
| author | Vytis Banaitis <vytis.banaitis@gmail.com> | 2017-02-01 18:41:56 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-02-01 11:41:56 -0500 |
| commit | 8838d4dd498c8f66ea4237fe8a79a5f77d6f95c9 (patch) | |
| tree | b75fa27930b8758ad36669b523b084ac09ce290b /tests/schema/tests.py | |
| parent | 0ec4dc91e0e7befdd06aa0613b5d0fbe3c785ee7 (diff) | |
Refs #23919 -- Replaced kwargs.pop() with keyword-only arguments.
Diffstat (limited to 'tests/schema/tests.py')
| -rw-r--r-- | tests/schema/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/schema/tests.py b/tests/schema/tests.py index d21f608e02..abcaa5b480 100644 --- a/tests/schema/tests.py +++ b/tests/schema/tests.py @@ -1819,9 +1819,9 @@ class SchemaTests(TransactionTestCase): """ #23065 - Constraint names must be quoted if they contain capital letters. """ - def get_field(*args, **kwargs): + def get_field(*args, field_class=IntegerField, **kwargs): kwargs['db_column'] = "CamelCase" - field = kwargs.pop('field_class', IntegerField)(*args, **kwargs) + field = field_class(*args, **kwargs) field.set_attributes_from_name("CamelCase") return field |
