diff options
| author | Tim Graham <timograham@gmail.com> | 2014-07-30 12:58:45 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-07-30 12:58:53 -0400 |
| commit | 34c60c42b61ffd88b1074cc81787977dcc20eb21 (patch) | |
| tree | c5f50990362e59dff861bb941d38525d58f7fa91 /tests/model_fields | |
| parent | 67d7da5fb9498b811f0168f5df2308ad4743027f (diff) | |
Fixed flake8 errors.
Diffstat (limited to 'tests/model_fields')
| -rw-r--r-- | tests/model_fields/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/model_fields/tests.py b/tests/model_fields/tests.py index 87236c31d5..2bf3b90a74 100644 --- a/tests/model_fields/tests.py +++ b/tests/model_fields/tests.py @@ -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], ('', '---------')) |
