From c068f000be7c486abb8b17fc565383679d7d4f82 Mon Sep 17 00:00:00 2001 From: Chaitanya Rahalkar Date: Tue, 17 Dec 2024 23:17:17 -0600 Subject: Fixed #36014 -- Supported international domains in EmailValidator. --- tests/forms_tests/field_tests/test_emailfield.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/forms_tests') diff --git a/tests/forms_tests/field_tests/test_emailfield.py b/tests/forms_tests/field_tests/test_emailfield.py index 601318bae3..cfebf4216d 100644 --- a/tests/forms_tests/field_tests/test_emailfield.py +++ b/tests/forms_tests/field_tests/test_emailfield.py @@ -31,7 +31,8 @@ class EmailFieldTest(FormFieldAssertionsMixin, SimpleTestCase): # Check for runaway regex security problem. This will take a long time # if the security fix isn't in place. addr = "viewx3dtextx26qx3d@yahoo.comx26latlngx3d15854521645943074058" - self.assertEqual(addr, f.clean(addr)) + with self.assertRaisesMessage(ValidationError, "Enter a valid email address."): + f.clean(addr) def test_emailfield_not_required(self): f = EmailField(required=False) -- cgit v1.3