cpython/Lib/test/test_email
Miss Islington (bot) 26ee788118
[3.11] gh-87720 Fix additional header refolding-quoting edge case (GH-134271) (#159065)
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>
2026-10-25 12:37:37 -07:00
..
data
__init__.py
__main__.py
test__encoded_words.py
test__header_value_parser.py [3.11] gh-87720 Fix additional header refolding-quoting edge case (GH-134271) (#159065) 2026-10-25 12:37:37 -07:00
test_asian_codecs.py
test_contentmanager.py
test_defect_handling.py
test_email.py [3.11] gh-136063: fix quadratic-complexity parsing in email.message._parseparam (GH-136072) (GH-140830) 2025-10-31 18:29:53 +01:00
test_generator.py [3.11] gh-144125: email: verify headers are sound in BytesGenerator (#144189) 2026-01-25 17:09:56 +00:00
test_headerregistry.py
test_inversion.py
test_message.py [3.11] gh-94606: Fix error when message with Unicode surrogate not surrogateescaped string (GH-94641) (GH-112972) 2023-12-11 16:47:25 +00:00
test_parser.py
test_pickleable.py
test_policy.py [3.11] gh-144125: email: verify headers are sound in BytesGenerator (#144189) 2026-01-25 17:09:56 +00:00
test_utils.py [3.11] gh-113027: Fix test_variable_tzname in test_email (GH-113821) (GH-113832) 2024-01-12 11:59:23 +00:00
torture_test.py