Senthil Kumaran added the comment: Daniel,
Agree to your point. Sorry that i did not run the coverage before. I would prefer to do the check this way for readability of the test code and get to 100% coverage. >>> expected_errmsg = 'HTTP Error %s: %s' %(err.code, err.msg) >>> assert str(err) == expected_errmsg Any thoughts? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17471> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com