Author: Alex
Date: 2010-12-18 20:01:01 -0600 (Sat, 18 Dec 2010)
New Revision: 14984
Modified:
django/branches/releases/1.2.X/tests/regressiontests/forms/localflavor/utils.py
Log:
[1.2.X] Fixed a Python 2.5 syntax error. Backport of [14983].
Modified:
django/branches/releases/1.2.X/tests/regressiontests/forms/localflavor/utils.py
===================================================================
---
django/branches/releases/1.2.X/tests/regressiontests/forms/localflavor/utils.py
2010-12-19 02:00:34 UTC (rev 14983)
+++
django/branches/releases/1.2.X/tests/regressiontests/forms/localflavor/utils.py
2010-12-19 02:01:01 UTC (rev 14984)
@@ -20,7 +20,7 @@
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)
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.