summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_email.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_email.py')
-rw-r--r--Lib/test/test_email.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_email.py b/Lib/test/test_email.py
index ddc36f3..5be7e95 100644
--- a/Lib/test/test_email.py
+++ b/Lib/test/test_email.py
@@ -952,6 +952,10 @@ class TestMiscellaneous(unittest.TestCase):
def test_parsedate_none(self):
self.assertEqual(Utils.parsedate(''), None)
+ def test_parseaddr_empty(self):
+ self.assertEqual(Utils.parseaddr('<>'), ('', ''))
+ self.assertEqual(Utils.dump_address_pair(Utils.parseaddr('<>')), '')
+
# Test the iterator/generators