[Python-checkins] cpython: whatsnew: doctest finds tests in extension modules (#3158)
r.david.murray
python-checkins at python.org
Tue Mar 11 20:13:35 CET 2014
http://hg.python.org/cpython/rev/8520e0ff8e36
changeset: 89587:8520e0ff8e36
user: R David Murray <rdmurray at bitdance.com>
date: Tue Mar 11 15:10:53 2014 -0400
summary:
whatsnew: doctest finds tests in extension modules (#3158)
#19861 msg213159
files:
Doc/whatsnew/3.4.rst | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -745,6 +745,9 @@
shorthand for ``-o FAIL_FAST`` (to parallel the similar option supported by the
:mod:`unittest` CLI). (Contributed by R. David Murray in :issue:`11390`.)
+:mod:`doctest` will now find doctests in extension module ``__doc__`` strings.
+(Contributed by Zachary Ware in :issue:`3158`.)
+
email
-----
@@ -2398,6 +2401,11 @@
will matter only if you have tests that are doing white-space-sensitive
comparisons of such output (:issue:`16333`).
+* :mod:`doctest` now looks for doctests in extension module ``__doc__``
+ strings, so if your doctest test discovery includes extension modules that
+ have things that look like doctests in them you may see test failures you've
+ never seen before when running your tests (:issue:`3158`).
+
Changes in the C API
--------------------
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list