[issue6484] No unit test for mailcap module
Nick Coghlan
report at bugs.python.org
Tue Aug 23 14:16:18 CEST 2011
Nick Coghlan <ncoghlan at gmail.com> added the comment:
The buildbots are reporting a test failure on Windows:
======================================================================
FAIL: test_listmailcapfiles (test.test_mailcap.HelperFunctionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows\build\lib\test\test_mailcap.py", line 74, in test_listmailcapfiles
self.assertEqual(env_mailcaps, mcfiles)
AssertionError: Lists differ: ['/testdir1/.mailcap', '/testd... != ['/testdir1/.mailcap;/testdir2...
First differing element 0:
/testdir1/.mailcap
/testdir1/.mailcap;/testdir2/mailcap
First list contains 1 additional elements.
First extra element 1:
/testdir2/mailcap
- ['/testdir1/.mailcap', '/testdir2/mailcap']
? ^^^^
+ ['/testdir1/.mailcap;/testdir2/mailcap']
? ^
There's a discrepancy between the test (uses os.pathsep) and the mailcap module (hardcoded to use ':' on all platforms).
I suspect the test is actually right and the module is wrong, but I don't know enough about mailcap to be sure. Anyone else?
----------
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6484>
_______________________________________
More information about the Python-bugs-list
mailing list