Vajrasky Kok added the comment: 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') ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18503> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com