diff options
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-02-03 23:15:32 (GMT) |
|---|---|---|
| committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-02-03 23:15:32 (GMT) |
| commit | 07974d7a936e244e1b0daf2650a465bc61a62765 (patch) | |
| tree | 1dd560d37b5c7b96009b1d61e399741fbf6446a6 /Lib/test/test_mailbox.py | |
| parent | 58e185a33b8dbfa4671adc99a8c6a6fd44515a71 (diff) | |
| download | cpython-07974d7a936e244e1b0daf2650a465bc61a62765.zip cpython-07974d7a936e244e1b0daf2650a465bc61a62765.tar.gz cpython-07974d7a936e244e1b0daf2650a465bc61a62765.tar.bz2 | |
Correct test_mailbox on win32: since the test sets a custom 'colon' attribute
to the main mailbox, copy it to secondary mailbox instances.
Diffstat (limited to 'Lib/test/test_mailbox.py')
| -rw-r--r-- | Lib/test/test_mailbox.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py index ff214ce..9206dc4 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)) |
