diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-02 14:42:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-02 14:42:07 (GMT) |
commit | 4f9b706c6f5d4422a398146bfd011daedaef1851 (patch) | |
tree | 41d5580168e3deeb256c076f7b611457c029ad1a /Misc | |
parent | 4ba18099b70c9f20f69357bac94d74f7c3238d7f (diff) | |
download | cpython-4f9b706c6f5d4422a398146bfd011daedaef1851.zip cpython-4f9b706c6f5d4422a398146bfd011daedaef1851.tar.gz cpython-4f9b706c6f5d4422a398146bfd011daedaef1851.tar.bz2 |
gh-108794: doctest counts skipped tests (#108795)
* Add 'skipped' attribute to TestResults.
* Add 'skips' attribute to DocTestRunner.
* Rename private DocTestRunner._name2ft attribute
to DocTestRunner._stats.
* Use f-string for string formatting.
* Add some tests.
* Document DocTestRunner attributes and its API for statistics.
* Document TestResults class.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Tests/2023-09-02-05-13-38.gh-issue-108794.tGHXBt.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2023-09-02-05-13-38.gh-issue-108794.tGHXBt.rst b/Misc/NEWS.d/next/Tests/2023-09-02-05-13-38.gh-issue-108794.tGHXBt.rst new file mode 100644 index 0000000..00027c7 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2023-09-02-05-13-38.gh-issue-108794.tGHXBt.rst @@ -0,0 +1,3 @@ +The :meth:`doctest.DocTestRunner.run` method now counts the number of skipped +tests. Add :attr:`doctest.DocTestRunner.skips` and +:attr:`doctest.TestResults.skipped` attributes. Patch by Victor Stinner. |