Ticket #6122: update_tests_for_maxlength_typerror.diff

File update_tests_for_maxlength_typerror.diff, 1.1 KB (added by mcroydon, 16 years ago)

Fixes tests that are throwing the correct TypeError but looking for the wrong text

  • tests/regressiontests/maxlength/tests.py

     
    2222>>> legacy_maxlength(10, 12)
    2323Traceback (most recent call last):
    2424...
    25 TypeError: field can not take both the max_length argument and the legacy maxlength argument.
     25TypeError: Field cannot take both the max_length argument and the legacy maxlength argument.
    2626
    2727>>> legacy_maxlength(0, 10)
    2828Traceback (most recent call last):
    2929...
    30 TypeError: field can not take both the max_length argument and the legacy maxlength argument.
     30TypeError: Field cannot take both the max_length argument and the legacy maxlength argument.
    3131
    3232>>> legacy_maxlength(0, None)
    33330
     
    4848>>> fields.Field(maxlength=10, max_length=15)
    4949Traceback (most recent call last):
    5050    ...
    51 TypeError: field can not take both the max_length argument and the legacy maxlength argument.
     51TypeError: Field cannot take both the max_length argument and the legacy maxlength argument.
    5252
    5353# Test max_length
    5454>>> new.max_length
Back to Top