mirror of
https://github.com/django/django.git
synced 2024-12-24 01:55:49 +00:00
Fixed a Python 2.5 syntax error.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14983 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
a360240c56
commit
fbc2f0a0a6
@ -28,7 +28,7 @@ class LocalFlavorTestCase(TestCase):
|
||||
emptyvalue: the expected clean output for inputs in EMPTY_VALUES
|
||||
"""
|
||||
required = fieldclass(*field_args, **field_kwargs)
|
||||
optional = fieldclass(*field_args, required=False, **field_kwargs)
|
||||
optional = fieldclass(*field_args, **dict(field_kwargs, required=False))
|
||||
# test valid inputs
|
||||
for input, output in valid.items():
|
||||
self.assertEqual(required.clean(input), output)
|
||||
|
Loading…
Reference in New Issue
Block a user