diff --git a/tests/forms_tests/field_tests/test_emailfield.py b/tests/forms_tests/field_tests/test_emailfield.py index 716e7c8da9..a0c8d5be1b 100644 --- a/tests/forms_tests/field_tests/test_emailfield.py +++ b/tests/forms_tests/field_tests/test_emailfield.py @@ -64,7 +64,7 @@ class EmailFieldTest(FormFieldAssertionsMixin, SimpleTestCase): "'Ensure this value has at most 15 characters (it has 20).'", ): f.clean("alf123456788@foo.com") - long_email = 'a' * 245 + '@example.com' + long_email = 'a' * 245 + '@example.com' with self.assertRaisesMessage( ValidationError, "'Ensure this value has at most 15 characters (it has 257).'"