]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-134857: Improve error report for doctests run with unittest (GH-134858...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 30 May 2025 10:44:40 +0000 (12:44 +0200)
committerGitHub <noreply@github.com>
Fri, 30 May 2025 10:44:40 +0000 (13:44 +0300)
commitd7d3e6915fe92deb9f9b283ad58b664d0cfb9574
treefc710ec076c113ed62a339e09d42e39f2ba751c7
parent02712fa848b30b934320c6b41dbe879d815a68c6
[3.14] gh-134857: Improve error report for doctests run with unittest (GH-134858) (GH-134903)

Remove doctest module frames from tracebacks and redundant newline
character from a failure message.
(cherry picked from commit cb8a72b301f47e76d93a7fe5b259e9a5758792e1)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/doctest.py
Lib/test/test_doctest/test_doctest.py
Misc/NEWS.d/next/Library/2025-05-28-20-49-29.gh-issue-134857.dVYXVO.rst [new file with mode: 0644]