diff options
author | R David Murray <rdmurray@bitdance.com> | 2014-03-11 19:10:53 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2014-03-11 19:10:53 (GMT) |
commit | f4ce4170efe963d58ed533ad089cb7cfdccad707 (patch) | |
tree | f7c2031c9b39b78e409a7098ebc0f5cab840d851 /Doc | |
parent | 162d7ca3cc62096a91bbb2fd591b90b7c4b5581b (diff) | |
download | cpython-f4ce4170efe963d58ed533ad089cb7cfdccad707.zip cpython-f4ce4170efe963d58ed533ad089cb7cfdccad707.tar.gz cpython-f4ce4170efe963d58ed533ad089cb7cfdccad707.tar.bz2 |
whatsnew: doctest finds tests in extension modules (#3158)
#19861 msg213159
Diffstat (limited to 'Doc')
-rw-r--r-- | 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 index a1d79ad..6044572 100644 --- a/Doc/whatsnew/3.4.rst +++ b/Doc/whatsnew/3.4.rst @@ -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 -------------------- |