mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
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:
parent
58e185a33b
commit
07974d7a93
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue