summaryrefslogtreecommitdiff
path: root/tests/mail/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mail/tests.py')
-rw-r--r--tests/mail/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/mail/tests.py b/tests/mail/tests.py
index 54a136c1a9..848ee32e9f 100644
--- a/tests/mail/tests.py
+++ b/tests/mail/tests.py
@@ -1084,9 +1084,10 @@ class MailTests(HeadersCheckMixin, SimpleTestCase):
"@",
"to@",
"@example.com",
+ ("", ""),
):
with self.subTest(email_address=email_address):
- with self.assertRaises(ValueError):
+ with self.assertRaisesMessage(ValueError, "Invalid address"):
sanitize_address(email_address, encoding="utf-8")
def test_sanitize_address_header_injection(self):