diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-10-25 09:41:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-25 09:41:21 (GMT) |
commit | f6a45a03d0e0ef6b00c45a0de9a606b1d23cbd2f (patch) | |
tree | 120285bfc6edbfba945f80c50d0e47f6fac26e7c /Doc | |
parent | a8a89fcd1ff03bb2f10126e0973faa74871874c3 (diff) | |
download | cpython-f6a45a03d0e0ef6b00c45a0de9a606b1d23cbd2f.zip cpython-f6a45a03d0e0ef6b00c45a0de9a606b1d23cbd2f.tar.gz cpython-f6a45a03d0e0ef6b00c45a0de9a606b1d23cbd2f.tar.bz2 |
gh-111165: Move test running code from test.support to libregrtest (GH-111166)
Remove no longer used functions run_unittest() and run_doctest() from
the test.support module.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/test.rst | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Doc/library/test.rst b/Doc/library/test.rst index 6be7726..6e96288 100644 --- a/Doc/library/test.rst +++ b/Doc/library/test.rst @@ -508,34 +508,6 @@ The :mod:`test.support` module defines the following functions: Define match patterns on test filenames and test method names for filtering tests. -.. function:: run_unittest(*classes) - - Execute :class:`unittest.TestCase` subclasses passed to the function. The - function scans the classes for methods starting with the prefix ``test_`` - and executes the tests individually. - - It is also legal to pass strings as parameters; these should be keys in - ``sys.modules``. Each associated module will be scanned by - ``unittest.TestLoader.loadTestsFromModule()``. This is usually seen in the - following :func:`test_main` function:: - - def test_main(): - support.run_unittest(__name__) - - This will run all tests defined in the named module. - - -.. function:: run_doctest(module, verbosity=None, optionflags=0) - - Run :func:`doctest.testmod` on the given *module*. Return - ``(failure_count, test_count)``. - - If *verbosity* is ``None``, :func:`doctest.testmod` is run with verbosity - set to :data:`verbose`. Otherwise, it is run with verbosity set to - ``None``. *optionflags* is passed as ``optionflags`` to - :func:`doctest.testmod`. - - .. function:: get_pagesize() Get size of a page in bytes. |