[issue17471] Patch for Additional Test Coverage for urllib.error

Daniel Wozniak report at bugs.python.org
Tue Mar 19 21:52:07 CET 2013


Daniel Wozniak added the comment:

Senthil,

The two lines you excluded from that patch give us coverage on HTTPError.__str__ , I added to the existing interface test so as not to re-produce the code there. I still think it could be added since it will give us that last line of coverage and verifies the exception's code and msg are in the string representation of HTTPError.

root at d1:/root/hg/cpython# ./python ../coveragepy report --show-missingName               Stmts   Miss  Cover   Missing
------------------------------------------------
Lib/urllib/error      32      1    97%   56

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17471>
_______________________________________


More information about the Python-bugs-list mailing list