Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f4ce417

Browse files
committed
whatsnew: doctest finds tests in extension modules (python#3158)
python#19861 msg213159
1 parent 162d7ca commit f4ce417

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Doc/whatsnew/3.4.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,9 @@ new options, ``-o`` and ``-f``. ``-o`` allows :ref:`doctest options
745745
shorthand for ``-o FAIL_FAST`` (to parallel the similar option supported by the
746746
:mod:`unittest` CLI). (Contributed by R. David Murray in :issue:`11390`.)
747747

748+
:mod:`doctest` will now find doctests in extension module ``__doc__`` strings.
749+
(Contributed by Zachary Ware in :issue:`3158`.)
750+
748751

749752
email
750753
-----
@@ -2398,6 +2401,11 @@ Changes in the Python API
23982401
will matter only if you have tests that are doing white-space-sensitive
23992402
comparisons of such output (:issue:`16333`).
24002403

2404+
* :mod:`doctest` now looks for doctests in extension module ``__doc__``
2405+
strings, so if your doctest test discovery includes extension modules that
2406+
have things that look like doctests in them you may see test failures you've
2407+
never seen before when running your tests (:issue:`3158`).
2408+
24012409

24022410
Changes in the C API
24032411
--------------------

0 commit comments

Comments
 (0)