This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vajrasky
Recipients r.david.murray, vajrasky
Date 2013-07-19.16:01:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1374249719.19.0.659080291602.issue18503@psf.upfronthosting.co.za>
In-reply-to
Content
I see.

Anyway, I am just curious. Why not doing try and catch?

    def test_del_param_on_nonexistent_header(self):
        msg = Message()
        try:
            msg.del_param('filename', 'content-disposition')
        except:
            self.fail('del_param on empty msg raised exception!')

Or is it better this way?

    def test_del_param_on_nonexistent_header(self):
        msg = Message()
        # Deleting param on empty msg should not raise exception.
        msg.del_param('filename', 'content-disposition')
History
Date User Action Args
2013-07-19 16:01:59vajraskysetrecipients: + vajrasky, r.david.murray
2013-07-19 16:01:59vajraskysetmessageid: <1374249719.19.0.659080291602.issue18503@psf.upfronthosting.co.za>
2013-07-19 16:01:59vajraskylinkissue18503 messages
2013-07-19 16:01:59vajraskycreate