Ticket #3858 (closed defect: fixed)
mimeview unit test fails
| Reported by: | david.vanmaren@… | Owned by: | cboos |
|---|---|---|---|
| Priority: | low | Milestone: | 0.11 |
| Component: | general | Version: | 0.10 |
| Severity: | minor | Keywords: | mimeview |
| Cc: |
Description
This is likely related to #3332, but when I run the unit tests on 0.10, I get a failed assertion.
From my uninformed perspective, it appears that the defect is in the test code, rather than in the logic of get_mimetype().
I am running SLES10, x86_64, Python 2.4.2. Here's a snippet of svn info from my working copy:
URL: http://svn.edgewall.com/repos/trac/tags/trac-0.10 Revision: 3804
Here's the test output:
$ PYTHONPATH=. trac/test.py SKIP: mimeview/tests/php.py .................................................................F............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ ====================================================================== FAIL: test_from_suffix_using_mimetypes (trac.mimeview.tests.api.GetMimeTypeTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/trac-svn/trac/mimeview/tests/api.py", line 26, in test_from_suffix_using_mimetypes get_mimetype('test.pyc', None)) AssertionError: 'application/x-python-code' != 'application/x-python-bytecode' ---------------------------------------------------------------------- Ran 590 tests in 39.788s FAILED (failures=1)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


