mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Fixed flake8 errors.
This commit is contained in:
parent
67d7da5fb9
commit
34c60c42b6
1 changed files with 1 additions and 1 deletions
|
@ -419,7 +419,7 @@ class ValidationTest(test.TestCase):
|
|||
def test_charfield_get_choices_doesnt_evaluate_lazy_strings(self):
|
||||
# Regression test for #23098
|
||||
# Will raise ZeroDivisionError if lazy is evaluated
|
||||
lazy_func = lazy(lambda x: 0/0, int)
|
||||
lazy_func = lazy(lambda x: 0 / 0, int)
|
||||
f = models.CharField(choices=[(lazy_func('group'), (('a', 'A'), ('b', 'B')))])
|
||||
self.assertEqual(f.get_choices(True)[0], ('', '---------'))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue