diff --git a/tests/regressiontests/forms/localflavor/uk.py b/tests/regressiontests/forms/localflavor/uk.py index cd6c8edf849..d041e8f1793 100644 --- a/tests/regressiontests/forms/localflavor/uk.py +++ b/tests/regressiontests/forms/localflavor/uk.py @@ -58,13 +58,7 @@ u'BT32 4PX' u'' >>> f.clean('') u'' ->>> class MyUKPostcodeField(UKPostcodeField): -... default_error_messages = { -... 'invalid': 'Enter a bloody postcode!', -... } -... ->>> ->>> f = MyUKPostcodeField(required=False) +>>> f = UKPostcodeField(error_messages={'invalid': 'Enter a bloody postcode!'}) >>> f.clean('1NV 4L1D') Traceback (most recent call last): ...