cpython/Lib/test/test_email
Mike Edmunds b605573828
gh-81074: Allow non-ASCII addr_spec in email.headerregistry.Address (#122477)
The email.headerregistry.Address constructor raised an error if
addr_spec contained a non-ASCII character. (But it fully supports
non-ASCII in the separate username and domain args.) This change
removes the error for a non-ASCII addr_spec, as well as the
Defect that triggered it.  In the unicode era non-ascii is not a
defect, though it is an error when an attempt is made to serialize
it to ascii.  The serialization issue was handled in #122540.
2026-05-01 14:00:46 -04:00
..
data
__init__.py
__main__.py
test__encoded_words.py
test__header_value_parser.py gh-81074: Allow non-ASCII addr_spec in email.headerregistry.Address (#122477) 2026-05-01 14:00:46 -04:00
test_asian_codecs.py
test_contentmanager.py
test_defect_handling.py gh-68552: fix defects policy (#138579) 2025-12-06 16:54:29 -05:00
test_email.py gh-145831: email.quoprimime: decode() leaves stray \r when eol='\r\n' (#145832) 2026-04-09 16:21:49 -04:00
test_generator.py gh-83938, gh-122476: Stop incorrectly RFC 2047 encoding non-ASCII email addresses (#122540) 2026-05-01 13:52:06 -04:00
test_headerregistry.py gh-81074: Allow non-ASCII addr_spec in email.headerregistry.Address (#122477) 2026-05-01 14:00:46 -04:00
test_inversion.py
test_message.py
test_parser.py
test_pickleable.py
test_policy.py gh-144156: Fix email header folding concatenating encoded words (#144692) 2026-02-19 13:29:05 -05:00
test_utils.py
torture_test.py