There are bugs that do not need a test once they are fixed.
   All kinds of "NameError" and "AttributeError" fall into this

The point of a test in most such cases is that there is a code path
that isn't covered by tests, or it would have been caught earlier.  A
test that exercises the modified bit of code helps assure that future
changes to the code don't introduce similar problems by providing at
least one pass through the block containing the problem.

How pressing the need for the test really is, is a matter for
discussion, because the cost of writing the first test for an existing
piece of code can be much higher than the cost of the fix.


Fred L. Drake, Jr.    <fdrake at gmail.com>
"Every sin is the result of a collaboration." --Lucius Annaeus Seneca
Zope3-dev mailing list
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to