cpython/Lib/test/test_email
Filip Łajszczak d76e411891
[3.13] gh-139434: Update selected RFC 2822 references to RFC 5322 (GH-139435) (#141024)
Update selected RFC 2822 references to RFC 5322

RFC 2822 was obsoleted by RFC 5322 in 2008. This updates references
to use the current standard in documentation, docstrings, and comments.

It preserves RFC 2822 references in legacy API components to maintain their
historical context.

RFC 822 → RFC 2822 → RFC 5322 progression is explained where relevant.

In some places specific sections of RFC are referenced where it seems helpful.

Scout rule was applied in some places and RFC mentions format was
normalized in doc strings and comments.
(cherry picked from commit ce1bb85d28)
2025-11-04 16:22:31 -05:00
..
data [3.13] gh-139434: Update selected RFC 2822 references to RFC 5322 (GH-139435) (#141024) 2025-11-04 16:22:31 -05:00
__init__.py [3.13] gh-71339: Use new assertion methods in the email tests (GH-129055) (GH-132501) 2025-05-22 09:40:04 +00:00
__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 [3.13] gh-134155: fix AttributeError in email._header_value_parser.get_address (GH-134194) (#135192) 2025-06-06 14:11:15 -04:00
test_asian_codecs.py
test_contentmanager.py [3.13] gh-71339: Use new assertion methods in the email tests (GH-129055) (GH-132501) 2025-05-22 09:40:04 +00:00
test_defect_handling.py [3.13] gh-71339: Use new assertion methods in the email tests (GH-129055) (GH-132501) 2025-05-22 09:40:04 +00:00
test_email.py [3.13] gh-139434: Update selected RFC 2822 references to RFC 5322 (GH-139435) (#141024) 2025-11-04 16:22:31 -05:00
test_generator.py [3.13] gh-121650: Encode newlines in headers, and verify headers are sound (GH-122233) (#122484) 2024-08-06 19:06:41 +02:00
test_headerregistry.py [3.13] gh-98188: Fix EmailMessage.get_payload to decode data when CTE value has extra text (GH-127547) (#128528) 2025-01-07 12:43:04 -05:00
test_inversion.py bpo-30681: Support invalid date format or value in email Date header (GH-22090) 2020-10-26 17:31:06 -07:00
test_message.py [3.13] gh-135307: Fix email error when policy max_line_length is set to 0 or None (GH-135367) (#140917) 2025-11-02 15:20:29 -05:00
test_parser.py
test_pickleable.py
test_policy.py [3.13] gh-121650: Encode newlines in headers, and verify headers are sound (GH-122233) (#122484) 2024-08-06 19:06:41 +02:00
test_utils.py gh-113027: Fix timezone check in test_variable_tzname in test_email (GH-113835) 2024-01-12 11:46:17 +01:00
torture_test.py bpo-5846: Do not use obsolete unittest functions. (GH-28303) 2021-09-13 10:49:53 +03:00