> From: > http://www.python.org/dev/buildbot/all/x86%20XP-4%202.5/builds/107/step-test/0 > > The errors are: > > File "E:\cygwin\home\db3l\buildarea\2.5.bolen-windows\build\lib\test\test_mailbox .py", > line 522, in test_consistent_factory > msg2 = box.get_message(key) > File "E:\cygwin\home\db3l\buildarea\2.5.bolen-windows\build\lib\mailbox.py", > line 315, in get_message > subpath = self._lookup(key) > File "E:\cygwin\home\db3l\buildarea\2.5.bolen-windows\build\lib\mailbox.py", > line 484, in _lookup > raise KeyError('No message with key: %s' % key) > KeyError: 'No message with key: 1201127998.M194999P232Q203.buildbot'
I did quick investigation on this error. After self._refresh() (line 480 in _loopkup - Lib/mailbox.py) runs, self._toc contains key like this. 1201171711.M848000P1176Q16.whiterab-c2znlh!2,FR Please look at exclamation mark. Probably this is not intended on most platforms like Unix. It should be ":" colon. But on windows, ":" is special letter after drive letter. (ex: "C:/Winnt/foo/bar") So I imagine open() or something converts ":" to "!" (valid character as file name). After I applied following experimental patch, test_mailbox.py run successfully on windows. Index: Lib/mailbox.py =================================================================== --- Lib/mailbox.py (revision 60233) +++ Lib/mailbox.py (working copy) @@ -223,7 +223,8 @@ class Maildir(Mailbox): """A qmail-style Maildir mailbox.""" - colon = ':' +# colon = ':' + colon = "!" def __init__(self, dirname, factory=rfc822.Message, create=True): """Initialize a Maildir instance.""" _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com