From 20e073b053e789f3e0c908f9fca22ebdb75a379b Mon Sep 17 00:00:00 2001 From: skushagra Date: Wed, 24 Jan 2024 12:17:47 +0530 Subject: [PATCH] Fixed line length too long in test_emailfied --- tests/forms_tests/field_tests/test_emailfield.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/forms_tests/field_tests/test_emailfield.py b/tests/forms_tests/field_tests/test_emailfield.py index 7eaf501cbe..ab91c52a18 100644 --- a/tests/forms_tests/field_tests/test_emailfield.py +++ b/tests/forms_tests/field_tests/test_emailfield.py @@ -66,7 +66,8 @@ class EmailFieldTest(FormFieldAssertionsMixin, SimpleTestCase): f.clean("alf123456788@foo.com") 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).'" + ValidationError, + "'Ensure this value has at most 254 characters (it has 255).'" ): f.clean(email) def test_emailfield_strip_on_none_value(self):