Better integration of doctest with unittest and libregrtest #108885
Labels
stdlib
Python modules in the Lib dir
tests
Tests in the Lib/test dir
type-feature
A feature request or enhancement
Feature or enhancement
A side effect of migration to the unittest test runner (a long process finished in #89392) was the change in the output in verbose mode. In older version, when
test.support.run_doctest()
was used to run doctests, it outputted all doctest details when regrtests are run with-v
. Now doctests are wrapped indoctest.DocTestClass
and only test name is shown when regrtests are run with-v
.The former behavior was too verbose, the current behavior is too terse. I want the following behavior:
-v
, do not output anything.-v
, output only doctest name, as for other test cases.-vv
, output detailed doctest output.-vv
).-v
s to show test case names and will need three-v
s to show doctest details.It means that we should found a way to pass verbosity level to doctests and run every example within
TestCase.subTest()
.The text was updated successfully, but these errors were encountered: