◐ Shell
clean mode source ↗

[3.9] bpo-27513: email.utils.getaddresses() now handles Header objects (GH-13797) by miss-islington · Pull Request #27245 · python/cpython

Expand Up @@ -3262,6 +3262,11 @@ def test_getaddresses_embedded_comment(self): addrs = utils.getaddresses(['User ((nested comment)) <foo@bar.com>']) eq(addrs[0][1], 'foo@bar.com')
def test_getaddresses_header_obj(self): """Test the handling of a Header object.""" addrs = utils.getaddresses([Header('Al Person <aperson@dom.ain>')]) self.assertEqual(addrs[0][1], 'aperson@dom.ain')
def test_make_msgid_collisions(self): # Test make_msgid uniqueness, even with multiple threads class MsgidsThread(Thread): Expand Down