summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-11-01 21:29:33 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-11-01 21:29:33 (GMT)
commite4c6b16b37937ccf9335a8b2a51adfd4ad0d7e7b (patch)
tree606a978ebf10eaf2a01fa43ee6299c9f2d77a9e0 /Lib/test
parent8844153d7f3c5ff00e844f674cd639af4ab8addc (diff)
downloadcpython-e4c6b16b37937ccf9335a8b2a51adfd4ad0d7e7b.zip
cpython-e4c6b16b37937ccf9335a8b2a51adfd4ad0d7e7b.tar.gz
cpython-e4c6b16b37937ccf9335a8b2a51adfd4ad0d7e7b.tar.bz2
This should finally fix #6896. Let's watch the buildbots.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_mailbox.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py
index 2abb354..548850a 100644
--- a/Lib/test/test_mailbox.py
+++ b/Lib/test/test_mailbox.py
@@ -684,6 +684,9 @@ class TestMaildir(TestMailbox):
self.assertEqual(self._box._lookup(key0), os.path.join('new', key0))
os.remove(os.path.join(self._path, 'new', key0))
self.assertEqual(self._box._toc, {key0: os.path.join('new', key0)})
+ # Be sure that the TOC is read back from disk (see issue #6896
+ # about bad mtime behaviour on some systems).
+ self._box.flush()
self.assertRaises(KeyError, lambda: self._box._lookup(key0))
self.assertEqual(self._box._toc, {})