diff options
author | Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> | 2024-12-05 19:10:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-05 19:10:46 (GMT) |
commit | 23f2e8f13c4e4a34106cf96fad9329cbfbf8844d (patch) | |
tree | a2f306c0ccd6c05302f4bb5eb279e3f0f6834a65 /Doc/library | |
parent | d958d9f4a1b71c6d30960bf6c53c41046ea94590 (diff) | |
download | cpython-23f2e8f13c4e4a34106cf96fad9329cbfbf8844d.zip cpython-23f2e8f13c4e4a34106cf96fad9329cbfbf8844d.tar.gz cpython-23f2e8f13c4e4a34106cf96fad9329cbfbf8844d.tar.bz2 |
gh-127221: Add colour to unittest output (#127223)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/doctest.rst | 4 | ||||
-rw-r--r-- | Doc/library/traceback.rst | 4 | ||||
-rw-r--r-- | Doc/library/unittest.rst | 4 |
3 files changed, 11 insertions, 1 deletions
diff --git a/Doc/library/doctest.rst b/Doc/library/doctest.rst index 6b0282e..106b0a6 100644 --- a/Doc/library/doctest.rst +++ b/Doc/library/doctest.rst @@ -136,6 +136,10 @@ examples of doctests in the standard Python test suite and libraries. Especially useful examples can be found in the standard test file :file:`Lib/test/test_doctest/test_doctest.py`. +.. versionadded:: 3.13 + Output is colorized by default and can be + :ref:`controlled using environment variables <using-on-controlling-color>`. + .. _doctest-simple-testmod: diff --git a/Doc/library/traceback.rst b/Doc/library/traceback.rst index 8f94fc4..4899ed6 100644 --- a/Doc/library/traceback.rst +++ b/Doc/library/traceback.rst @@ -44,6 +44,10 @@ The module's API can be divided into two parts: necessary for later formatting without holding references to actual exception and traceback objects. +.. versionadded:: 3.13 + Output is colorized by default and can be + :ref:`controlled using environment variables <using-on-controlling-color>`. + Module-Level Functions ---------------------- diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 38bad94..7f8b710 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -46,7 +46,6 @@ test runner a textual interface, or return a special value to indicate the results of executing the tests. - .. seealso:: Module :mod:`doctest` @@ -198,6 +197,9 @@ For a list of all the command-line options:: In earlier versions it was only possible to run individual test methods and not modules or classes. +.. versionadded:: 3.14 + Output is colorized by default and can be + :ref:`controlled using environment variables <using-on-controlling-color>`. Command-line options ~~~~~~~~~~~~~~~~~~~~ |