[Python-checkins] python/dist/src/Misc NEWS,1.812,1.813
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
Wed, 16 Jul 2003 12:25:24 -0700
Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1:/tmp/cvs-serv32010/Misc
Modified Files:
NEWS
Log Message:
Doctest now examines all docstrings by default. Previously, it would
skip over functions with private names (as indicated by the underscore
naming convention). The old default created too much of a risk that
user tests were being skipped inadvertently. Note, this change could
break code in the unlikely case that someone had intentionally put
failing tests in the docstrings of private functions. The breakage
is easily fixable by specifying the old behavior when calling testmod()
or Tester(). The more likely case is that the silent failure was
unintended and that the user needed to be informed so the test could be
fixed.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.812
retrieving revision 1.813
diff -C2 -d -r1.812 -r1.813
*** NEWS 13 Jul 2003 17:21:10 -0000 1.812
--- NEWS 16 Jul 2003 19:25:22 -0000 1.813
***************
*** 39,42 ****
--- 39,51 ----
-------
+ - doctest now examines all docstrings by default. Previously, it would
+ skip over functions with private names (as indicated by the underscore
+ naming convention). The old default created too much of a risk that
+ user tests were being skipped inadvertently. Note, this change could
+ break code in the unlikely case that someone had intentionally put
+ failing tests in the docstrings of private functions. The breakage
+ is easily fixable by specifying the old behavior when calling testmod()
+ or Tester().
+
- Closing a dumbdbm database more than once is now harmless (it used to
raise a nuisance exception on the second close).