mirror of
https://github.com/django/django.git
synced 2025-06-08 21:19:13 +00:00
Fixed test to check for max length of email field in test_emailfield
This commit is contained in:
parent
6855de7f8b
commit
1954d718cb
@ -67,7 +67,7 @@ class EmailFieldTest(FormFieldAssertionsMixin, SimpleTestCase):
|
||||
email = 'a' * 245 + '@example.com' # This email has 255 characters
|
||||
with self.assertRaisesMessage(
|
||||
ValidationError,
|
||||
"'Ensure this value has at most 254 characters (it has 255).'"
|
||||
"'Ensure this value has at most 15 characters (it has 255).'"
|
||||
):
|
||||
f.clean(email)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user