diff --git a/Lib/test/test_rfc822.py b/Lib/test/test_rfc822.py index b8ae8c70ad7..a2b51513e44 100644 --- a/Lib/test/test_rfc822.py +++ b/Lib/test/test_rfc822.py @@ -80,3 +80,10 @@ test''', [('', ''), ('', 'dd47@mail.xxx.edu'), ('', '_at_hmhq@hdq-mdm1-imgout.companay.com') ]) + +# This exercises the old commas-in-a-full-name bug, which should be doing the +# right thing in recent versions of the module. +test('''To: "last, first" + +test''', [('last, first', 'userid@foo.net'), + ])