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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=07974d7a936e244e1b0daf2650a465bc61a62765;p=thirdparty%2FPython%2Fcpython.git 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 ff214cef9814..9206dc453499 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))