test_client_regress.models.UploadedFileEncodingTest fails if the mimetypes.guess_type() guesses an alternate zip mimetype
FAIL: test_guesses_content_type_on_file_encoding (regressiontests.test_client_regress.models.UploadedFileEncodingTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/emulbreh/Projekte/django-dev/trunk/tests/regressiontests/test_client_regress/models.py", line 847, in test_guesses_content_type_on_file_encoding
encode_file('IGNORE', 'IGNORE', DummyFile("file.zip"))[2])
AssertionError: 'Content-Type: application/zip' != 'Content-Type: application/x-zip-compressed'
Has patch: |
set
|
Patch needs improvement: |
set
|
Triage Stage: |
Unreviewed → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
In addition to application/x-zip-compressed, we should probably also be catching application/x-zip and application/x-compress. They're edge cases too; we might as well catch them while we're at it.
Marking RFC though, because adding the extra types into the patch is a trivial modification.