diff options
author | R. David Murray <rdmurray@bitdance.com> | 2009-04-02 14:05:35 +0000 |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2009-04-02 14:05:35 +0000 |
commit | 52720c5455c3cfe200988aead6252e60ed507738 (patch) | |
tree | eca44596ee5c5832ffa886ee6794063a78a2f51c /Lib/test/test_mailbox.py | |
parent | e2942d073d4b8a1f9b5f48c73855f409e6b900b2 (diff) | |
download | cpython-git-52720c5455c3cfe200988aead6252e60ed507738.tar.gz |
Add missing iteritems() call to the for loop in mailbox.MH.get_message().
Fixes issue2625.
Diffstat (limited to 'Lib/test/test_mailbox.py')
-rw-r--r-- | Lib/test/test_mailbox.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py index bec51e5192..714bf252ba 100644 --- a/Lib/test/test_mailbox.py +++ b/Lib/test/test_mailbox.py @@ -936,6 +936,12 @@ class TestMH(TestMailbox): self._box.remove(key1) self.assert_(self._box.get_sequences() == {'flagged':[key0]}) + def test_issue2625(self): + msg0 = mailbox.MHMessage(self._template % 0) + msg0.add_sequence('foo') + key0 = self._box.add(msg0) + refmsg0 = self._box.get_message(key0) + def test_pack(self): # Pack the contents of the mailbox msg0 = mailbox.MHMessage(self._template % 0) |