Ticket #6122: update_tests_for_maxlength_typerror.diff
File update_tests_for_maxlength_typerror.diff, 1.1 KB (added by , 16 years ago) |
---|
-
tests/regressiontests/maxlength/tests.py
22 22 >>> legacy_maxlength(10, 12) 23 23 Traceback (most recent call last): 24 24 ... 25 TypeError: field cannot take both the max_length argument and the legacy maxlength argument.25 TypeError: Field cannot take both the max_length argument and the legacy maxlength argument. 26 26 27 27 >>> legacy_maxlength(0, 10) 28 28 Traceback (most recent call last): 29 29 ... 30 TypeError: field cannot take both the max_length argument and the legacy maxlength argument.30 TypeError: Field cannot take both the max_length argument and the legacy maxlength argument. 31 31 32 32 >>> legacy_maxlength(0, None) 33 33 0 … … 48 48 >>> fields.Field(maxlength=10, max_length=15) 49 49 Traceback (most recent call last): 50 50 ... 51 TypeError: field cannot take both the max_length argument and the legacy maxlength argument.51 TypeError: Field cannot take both the max_length argument and the legacy maxlength argument. 52 52 53 53 # Test max_length 54 54 >>> new.max_length