cpython/Lib/test/test_email
R. David Murray bdbb55c403
gh-148518 fix index error in local part attribute (#148522)
As part of fixing bpo-27931 code was introduced to get_bare_quoted_string
that added an empty Terminal if the quoted string was empty.  This isn't
the best answer in terms of the parse tree; we really want the token
list to be empty in that case.  But having it be empty resulted in
local_part raising the index error.  We find that same problem if we
try to parse an address consisting of a single dquote.  By fixing
local_part to not raise on an empty token list, we can have the
bare_quoted_string code correctly return an empty token list for
the empty string cases (two dquotes or a single dquote as the
entire addrespec, at the end of a line).
2026-04-30 17:41:43 -04:00
..
data gh-139434: Update selected RFC 2822 references to RFC 5322 (#139435) 2025-11-04 14:46:07 -05:00
__init__.py
__main__.py
test__encoded_words.py bpo-43323: Fix UnicodeEncodeError in the email module (GH-32137) 2022-04-30 13:17:23 +03:00
test__header_value_parser.py bpo-39100: _header_value_parser: do not treat a Group as invalid-mailbox (#24872) 2026-04-30 13:24:23 -04:00
test_asian_codecs.py gh-126133: Only use start year in PSF copyright, remove end years (#126236) 2024-11-12 15:59:19 +02:00
test_contentmanager.py gh-71339: Use new assertion methods in the email tests (GH-129055) 2025-04-14 09:25:58 +03:00
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-148192: Fix Generator._make_boundary behavior with CRLF line endings. (#148193) 2026-04-14 09:10:08 -04:00
test_headerregistry.py gh-148518 fix index error in local part attribute (#148522) 2026-04-30 17:41:43 -04:00
test_inversion.py
test_message.py gh-135307: Fix email error when policy max_line_length is set to 0 or None (#135367) 2025-11-02 09:32:14 -05:00
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 gh-118761: Add test_lazy_import for more modules (#133057) 2025-05-05 22:46:05 +00:00
torture_test.py gh-126133: Only use start year in PSF copyright, remove end years (#126236) 2024-11-12 15:59:19 +02:00