cpython/Lib/test/test_email
Miss Islington (bot) d8f88eca61
[3.13] gh-87720 Fix additional header refolding-quoting edge case (GH-134271) (#160456)
gh-87720 Fix additional header refolding-quoting edge case (GH-134271)

In this case, the higher level syntactic unit fit on the remainder of
the line in un-encoded format, and that higher level unit was
not a ptext or vtext, so the encoding check failed.  To fix this, we
look inside the current unit to see if has anything that was
originally encoded.
(cherry picked from commit 5a22a62b96)

Co-authored-by: R. David Murray <rdmurray@bitdance.com>
Co-authored-by: T. Wouters <thomas@python.org>
2026-10-25 07:40:24 -07:00
..
data
__init__.py
__main__.py
test__encoded_words.py
test__header_value_parser.py [3.13] gh-87720 Fix additional header refolding-quoting edge case (GH-134271) (#160456) 2026-10-25 07:40:24 -07:00
test_asian_codecs.py [3.13] gh-88726: Stop using non-standard charset names eucgb2312_cn and big5_tw in email (GH-149959) (GH-150493) 2026-05-27 10:53:08 +00:00
test_contentmanager.py [3.13] gh-150771: Fix email serialization for shift_jis and euc-jp (GH-151120) (#152953) 2026-08-04 12:14:23 +02:00
test_defect_handling.py
test_email.py [3.13] gh-149916: Restore the commented out part of test_body_encode in test_email (GH-149917) (GH-149939) 2026-05-17 08:29:33 +00:00
test_generator.py [3.13] gh-148192: Fix Generator._make_boundary behavior with CRLF line endings. (GH-148193) (#148549) 2026-04-14 12:21:55 -04:00
test_headerregistry.py [3.13] gh-153406: Raise ValueError, not OverflowError, for out-of-range dates in email.utils.parsedate_to_datetime (GH-153407) (#153433) 2026-07-09 15:54:19 -04:00
test_inversion.py
test_message.py
test_parser.py
test_pickleable.py
test_policy.py [3.13] gh-144156: Fix email header folding concatenating encoded words (GH-144692) (#145195) 2026-02-24 15:55:54 -05:00
test_utils.py [3.13] gh-153406: Raise ValueError, not OverflowError, for out-of-range dates in email.utils.parsedate_to_datetime (GH-153407) (#153433) 2026-07-09 15:54:19 -04:00
torture_test.py