From 07974d7a936e244e1b0daf2650a465bc61a62765 Mon Sep 17 00:00:00 2001 From: Amaury Forgeot d'Arc Date: Sun, 3 Feb 2008 23:15:32 +0000 Subject: [PATCH] Correct test_mailbox on win32: since the test sets a custom 'colon' attribute to the main mailbox, copy it to secondary mailbox instances. --- Lib/test/test_mailbox.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py index ff214cef98..9206dc4534 100644 --- a/Lib/test/test_mailbox.py +++ b/Lib/test/test_mailbox.py @@ -520,6 +520,7 @@ class TestMaildir(TestMailbox): class FakeMessage(mailbox.MaildirMessage): pass box = mailbox.Maildir(self._path, factory=FakeMessage) + box.colon = self._box.colon msg2 = box.get_message(key) self.assert_(isinstance(msg2, FakeMessage)) -- 2.40.0