Correct test_mailbox on win32: since the test sets a custom 'colon' attribute

to the main mailbox, copy it to secondary mailbox instances.
This commit is contained in:
Amaury Forgeot d'Arc 2008-02-03 23:15:32 +00:00
parent 58e185a33b
commit 07974d7a93

View file

@ -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))