mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
[1.2.X] Fixed a Python 2.5 syntax error. Backport of [14983].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14984 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d5c15a490e
commit
eb7f2789f8
@ -20,7 +20,7 @@ class LocalFlavorTestCase(TestCase):
|
|||||||
emptyvalue: the expected clean output for inputs in EMPTY_VALUES
|
emptyvalue: the expected clean output for inputs in EMPTY_VALUES
|
||||||
"""
|
"""
|
||||||
required = fieldclass(*field_args, **field_kwargs)
|
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
|
# test valid inputs
|
||||||
for input, output in valid.items():
|
for input, output in valid.items():
|
||||||
self.assertEqual(required.clean(input), output)
|
self.assertEqual(required.clean(input), output)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user