Skip to content
Browse files

Fixed a Python 2.5 syntax error.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent a360240 commit fbc2f0a0a6ce9218cc0b7feba1a9d6c7205de19f @alex alex committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/regressiontests/forms/localflavor/
2 tests/regressiontests/forms/localflavor/
@@ -28,7 +28,7 @@ def assertFieldOutput(self, fieldclass, valid, invalid, field_args=[],
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)

0 comments on commit fbc2f0a

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