[issue6896] Intermittent failures in test_mailbox

2009-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Now merged into py3k and 3.1, where it has solved the buildbot issues. 2.6 doesn't apply, since the caching scheme isn't present there. If there's any problem with the patch, please reopen. -- resolution: -> fixed status: open -> closed __

[issue6896] Intermittent failures in test_mailbox

2009-11-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ezio indicated that the patch suppressed all failures for him, so I committed it on trunk. -- ___ Python tracker ___ ___

[issue6896] Intermittent failures in test_mailbox

2009-11-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: PS: this is the kind of traces I had when running TestMaildir on David's buildbot: at 1257086460.18, linking/renaming ... mtime of '/home/pitrou/trunk/@test_23145_tmp/new' is now 1257086459.0 at 1257086460.21, linking/renaming ... mtime of '/home/pitrou/trunk/@

[issue6896] Intermittent failures in test_mailbox

2009-11-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, here is a patch which seems to fix the problem reliably on RDM's buildbot. Ezio, can you give it a try? -- Added file: http://bugs.python.org/file15246/maildir.patch ___ Python tracker

[issue6896] Intermittent failures in test_mailbox

2009-11-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: The explanation seems to be that some systems (including RDM's buildbot) have slightly bizarre mtime behaviour: $ date && python -c 'import os; os.link("setup.py", "t/c")' && stat t && date Sun Nov 1 09:49:04 EST 2009 File: `t' Size: 144 Blocks

[issue6896] Intermittent failures in test_mailbox

2009-10-31 Thread R. David Murray
R. David Murray added the comment: I hacked mailbox.py so that a _toc refresh is always done and ran the tests in a loop, and did not get a failure in 30+ runs, whereas without that hack I would get failures almost every run. So I think Antoine is on the right track. -- __

[issue6896] Intermittent failures in test_mailbox

2009-10-31 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file15244/test_mailbox2.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue6896] Intermittent failures in test_mailbox

2009-10-31 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file15243/test_mailbox.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue6896] Intermittent failures in test_mailbox

2009-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: According to testers, both patches fail at addressing the issue. -- ___ Python tracker ___ ___ Pytho

[issue6896] Intermittent failures in test_mailbox

2009-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Another possible explanation is that the logic for computing Maildir._last_time is wrong. It should be computed before refreshing the internal cache, not after. Here is a patch. -- Added file: http://bugs.python.org/file15244/test_mailbox2.patch __

[issue6896] Intermittent failures in test_mailbox

2009-10-31 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue6896] Intermittent failures in test_mailbox

2009-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ezio, could you give a try to the following patch? -- keywords: +patch Added file: http://bugs.python.org/file15243/test_mailbox.patch ___ Python tracker __

[issue6896] Intermittent failures in test_mailbox

2009-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looking at the frequent buildbot failures, they always seem to happen in TestMaildir. Therefore, it may have to do with the metadata-updating behaviour of the filesystem (since maildir uses one file per message). Unfortunately, while I tried to reproduce the fa

[issue6896] Intermittent failures in test_mailbox

2009-10-11 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +akuchling ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue6896] Intermittent failures in test_mailbox

2009-09-12 Thread Ezio Melotti
New submission from Ezio Melotti : While running test.regrtest, test_mailbox failed with the error: test test_mailbox failed -- Traceback (most recent call last): File "/home/wolf/py3k/Lib/test/test_mailbox.py", line 116, in test_discard self.assertEqual(len(self._box), 1) AssertionError: