mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Corrected domain max length for EmailValidator; refs #20631.
Thanks MarkusH for the report.
This commit is contained in:
parent
7fd55c3481
commit
1f8bb95cc2
2 changed files with 6 additions and 6 deletions
|
@ -66,9 +66,9 @@ TEST_DATA = (
|
|||
(validate_email, '"\\\011"@here.com', None),
|
||||
(validate_email, '"\\\012"@here.com', ValidationError),
|
||||
(validate_email, 'trailingdot@shouldfail.com.', ValidationError),
|
||||
# Max length of domain name in email is 251 (see validator for calculation)
|
||||
(validate_email, 'a@%s.com' % ('a' * 251), None),
|
||||
(validate_email, 'a@%s.com' % ('a' * 252), ValidationError),
|
||||
# Max length of domain name in email is 249 (see validator for calculation)
|
||||
(validate_email, 'a@%s.us' % ('a' * 249), None),
|
||||
(validate_email, 'a@%s.us' % ('a' * 250), ValidationError),
|
||||
|
||||
(validate_slug, 'slug-ok', None),
|
||||
(validate_slug, 'longer-slug-still-ok', None),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue