This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients anthonyb, ezio.melotti, gnofi, loewis, ncoghlan, python-dev, r.david.murray, vstinner
Date 2011-08-23.12:16:17
SpamBayes Score 2.7888738e-08
Marked as misclassified No
Message-id <1314101778.1.0.501274955394.issue6484@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2011-08-23 12:16:18ncoghlansetrecipients: + ncoghlan, loewis, vstinner, ezio.melotti, r.david.murray, gnofi, python-dev, anthonyb
2011-08-23 12:16:18ncoghlansetmessageid: <1314101778.1.0.501274955394.issue6484@psf.upfronthosting.co.za>
2011-08-23 12:16:17ncoghlanlinkissue6484 messages
2011-08-23 12:16:17ncoghlancreate