-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intermittent failures in test_mailbox #51145
Comments
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: 2 != 1 I ran the test again several times and got intermittent failures in During the first tests I was running test_mailbox after I'm using Python 3.2a0 on Ubuntu 8.04. |
Looking at the frequent buildbot failures, they always seem to happen in Unfortunately, while I tried to reproduce the failures on my home system Ezio, could you give details on your system, your filesystem and its |
Ezio, could you give a try to the following patch? |
Another possible explanation is that the logic for computing |
According to testers, both patches fail at addressing the issue. |
I hacked mailbox.py so that a _toc refresh is always done and ran the |
The explanation seems to be that some systems (including RDM's buildbot) $ 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: 0 IO Block: 4096 directory
Device: 811h/2065d Inode: 223152 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 1001/ pitrou) Gid: ( 1005/ pitrou)
Access: 2009-11-01 09:10:11.000000000 -0500
Modify: 2009-11-01 09:49:03.000000000 -0500
Change: 2009-11-01 09:49:03.000000000 -0500
Sun Nov 1 09:49:04 EST 2009 As you see, the mtime of the directory is set a full one second before |
Ok, here is a patch which seems to fix the problem reliably on RDM's |
PS: this is the kind of traces I had when running TestMaildir on David's at 1257086460.18, linking/renaming ... mtime of As you see, the mtime is set to 1257086459 even when time.time() returns |
Ezio indicated that the patch suppressed all failures for him, so I |
Now merged into py3k and 3.1, where it has solved the buildbot issues. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: