Commits

Al...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed 69b32f9

[1.2.X] Fixed a Python 2.5 syntax error. Backport of [14983].

  • Participants
  • Parent commits b0ece25
  • Branches releases/1.2.X

Comments (0)

Files changed (1)

File tests/regressiontests/forms/localflavor/utils.py

             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)