Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed a Python 2.5 syntax error.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14983 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit fbc2f0a0a6ce9218cc0b7feba1a9d6c7205de19f 1 parent a360240
Alex Gaynor authored December 19, 2010
2  tests/regressiontests/forms/localflavor/utils.py
@@ -28,7 +28,7 @@ def assertFieldOutput(self, fieldclass, valid, invalid, field_args=[],
28 28
             emptyvalue: the expected clean output for inputs in EMPTY_VALUES
29 29
         """
30 30
         required = fieldclass(*field_args, **field_kwargs)
31  
-        optional = fieldclass(*field_args, required=False, **field_kwargs)
  31
+        optional = fieldclass(*field_args, **dict(field_kwargs, required=False))
32 32
         # test valid inputs
33 33
         for input, output in valid.items():
34 34
             self.assertEqual(required.clean(input), output)

0 notes on commit fbc2f0a

Please sign in to comment.
Something went wrong with that request. Please try again.