1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #27848 -- Prevented crash when attaching a .eml file to a message

Thanks Sébastien Ramage for the report.
This commit is contained in:
Claude Paroz
2017-04-01 15:08:21 +02:00
parent bde86ce9ae
commit 9a9e228321
3 changed files with 46 additions and 1 deletions

View File

@@ -401,6 +401,7 @@ class MailTests(HeadersCheckMixin, SimpleTestCase):
('file_png', None),
('file_txt.png', 'image/png'),
('file_png.txt', 'text/plain'),
('file.eml', 'message/rfc822'),
)
test_mimetypes = ['text/plain', 'image/png', None]