cpython/Lib/test/test_email
Abhilash Raj 02257012f6 bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError. (GH-14119)
* bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError.

When certain malformed messages have content-type set to 'mulitpart/*' but
still have a single part body, iter_attachments can raise AttributeError. This
patch fixes it by returning a None value instead when the body is single part.
2019-06-25 10:03:19 -07:00
..
data
__init__.py
__main__.py
test__encoded_words.py
test__header_value_parser.py bpo-21315: Fix parsing of encoded words with missing leading ws. (#13425) 2019-06-05 09:56:33 -07:00
test_asian_codecs.py
test_contentmanager.py
test_defect_handling.py
test_email.py bpo-30835: email: Fix AttributeError when parsing invalid CTE (GH-13598) 2019-06-04 11:00:47 -07:00
test_generator.py
test_headerregistry.py bpo-21315: Fix parsing of encoded words with missing leading ws. (#13425) 2019-06-05 09:56:33 -07:00
test_inversion.py
test_message.py bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError. (GH-14119) 2019-06-25 10:03:19 -07:00
test_parser.py
test_pickleable.py
test_policy.py bpo-33524: Fix the folding of email header when max_line_length is 0 or None (#13391) 2019-05-17 15:28:44 -04:00
test_utils.py
torture_test.py