From: Amaury Forgeot d'Arc Date: Sun, 3 Feb 2008 23:15:32 +0000 (+0000) Subject: Correct test_mailbox on win32: since the test sets a custom 'colon' attribute X-Git-Tag: v2.6a1~280 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07974d7a936e244e1b0daf2650a465bc61a62765;p=python Correct test_mailbox on win32: since the test sets a custom 'colon' attribute to the main mailbox, copy it to secondary mailbox instances. --- 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))