summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_mailbox.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-11-02 11:36:51 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-11-02 11:36:51 (GMT)
commit03f13445c9a253ba0fb2fd4677d6fb59ced707b8 (patch)
tree4725847e33027be2e74be366c09a4999e12c75da /Lib/test/test_mailbox.py
parent9166e6afdf3702493b5c27a069122189bddcf2f6 (diff)
downloadcpython-03f13445c9a253ba0fb2fd4677d6fb59ced707b8.zip
cpython-03f13445c9a253ba0fb2fd4677d6fb59ced707b8.tar.gz
cpython-03f13445c9a253ba0fb2fd4677d6fb59ced707b8.tar.bz2
Merged revisions 76034,76054 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r76034 | antoine.pitrou | 2009-11-01 22:29:33 +0100 (dim., 01 nov. 2009) | 3 lines This should finally fix #6896. Let's watch the buildbots. ........ r76054 | antoine.pitrou | 2009-11-02 12:34:27 +0100 (lun., 02 nov. 2009) | 3 lines Since r76034 was successful, add a NEWS entry for it. ........
Diffstat (limited to 'Lib/test/test_mailbox.py')
-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 66472d9..9a43f88 100644
--- a/Lib/test/test_mailbox.py
+++ b/Lib/test/test_mailbox.py
@@ -673,6 +673,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, {})