]> granicus.if.org Git - python/commitdiff
whatsnew: doctest finds tests in extension modules (#3158)
authorR David Murray <rdmurray@bitdance.com>
Tue, 11 Mar 2014 19:10:53 +0000 (15:10 -0400)
committerR David Murray <rdmurray@bitdance.com>
Tue, 11 Mar 2014 19:10:53 +0000 (15:10 -0400)
#19861 msg213159

Doc/whatsnew/3.4.rst

index a1d79ad199a2eb1efd39985e69ce9a96a283cc98..6044572970113e2624e2436247e781d08a693733 100644 (file)
@@ -745,6 +745,9 @@ new options, ``-o`` and ``-f``.  ``-o`` allows :ref:`doctest options
 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 @@ Changes in the Python API
   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
 --------------------