[issue11572] bring Lib/copy.py to 100% coverage

Brandon Craig Rhodes report at bugs.python.org
Wed Mar 16 18:51:40 CET 2011


Brandon Craig Rhodes <brandon at rhodesmill.org> added the comment:

Benjamin, thanks for the pointers! The attached patch now uses assertIs() and assertIsNot(), and calls self.fail() instead of using the exception from "support".

In the future I would like some way to determine when test coverage is fully achieved, so that I do not come back to this module every few months and have to re-discover why it is not 100%. But for the moment I have indeed removed the pragmas, pending a better approach!

----------
Added file: http://bugs.python.org/file21246/test_copy2.patch

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


More information about the Python-bugs-list mailing list