]> granicus.if.org Git - python/commitdiff
Correct test_mailbox on win32: since the test sets a custom 'colon' attribute
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Sun, 3 Feb 2008 23:15:32 +0000 (23:15 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Sun, 3 Feb 2008 23:15:32 +0000 (23:15 +0000)
to the main mailbox, copy it to secondary mailbox instances.

Lib/test/test_mailbox.py

index ff214cef9814bb9d9b284c0ae42198697f2f8be0..9206dc453499e4be57e6e415c9f78757dbd29b15 100644 (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))