diff options
Diffstat (limited to 'tests/forms_tests')
| -rw-r--r-- | tests/forms_tests/tests/test_fields.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/forms_tests/tests/test_fields.py b/tests/forms_tests/tests/test_fields.py index 1bab912cfc..45545cdb48 100644 --- a/tests/forms_tests/tests/test_fields.py +++ b/tests/forms_tests/tests/test_fields.py @@ -1173,7 +1173,8 @@ class FieldsTests(SimpleTestCase): ) def test_choicefield_callable(self): - choices = lambda: [('J', 'John'), ('P', 'Paul')] + def choices(): + return [('J', 'John'), ('P', 'Paul')] f = ChoiceField(choices=choices) self.assertEqual('J', f.clean('J')) |
