]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108885: Use subtests for doctest examples run by unittest (GH-134890)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 31 May 2025 10:01:46 +0000 (13:01 +0300)
committerGitHub <noreply@github.com>
Sat, 31 May 2025 10:01:46 +0000 (13:01 +0300)
commitad39f017881e0bd8ffd809755ebf76380b928ad3
tree7cb354a51c9ba2304fb1a300792f08c7cc425c65
parent3c66e5976669a599adfb260514c03815b1a9e4e9
 gh-108885: Use subtests for doctest examples run by unittest (GH-134890)

Run each example as a subtest in unit tests synthesized by
doctest.DocFileSuite() and doctest.DocTestSuite().

Add the doctest.DocTestRunner.report_skip() method.
Doc/library/doctest.rst
Lib/doctest.py
Lib/test/test_doctest/test_doctest.py
Lib/test/test_regrtest.py
Misc/NEWS.d/next/Library/2025-05-29-17-39-13.gh-issue-108885.MegCRA.rst [new file with mode: 0644]