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:59:46 -0400 |
| commit | 82695c3f2b3f8f4fbc8ec0753c0f5f23f0769bee (patch) | |
| tree | 5782cc28e38e894fc041f3f036f7b70ef1c3f643 | |
| parent | 7cb4a82eaf2c6b59a80699ae91b63180eb8a47ef (diff) | |
[1.7.x] Fixed flake8 errors.
Backport of 34c60c42b6 from master
| -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 0c38d28ba5..404591874b 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], ('', '---------')) |
