]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-115392: Fix doctest reporting incorrect line numbers for decorated function...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 14 Feb 2024 15:55:48 +0000 (16:55 +0100)
committerGitHub <noreply@github.com>
Wed, 14 Feb 2024 15:55:48 +0000 (15:55 +0000)
commitc4e8ffb9a1cf9c38280b020fd0ad0cb4f1deaf6d
tree241e4f0ec56b957b75e0c40aacc8fcb4fa13b647
parentcb941e126407d6f92de5177c6be456540cd84d3c
[3.11] gh-115392: Fix doctest reporting incorrect line numbers for decorated functions (GH-115440) (#115458)

gh-115392: Fix doctest reporting incorrect line numbers for decorated functions (GH-115440)
(cherry picked from commit bb791c7728e0508ad5df28a90b27e202d66a9cfa)

Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Lib/doctest.py
Lib/test/test_doctest/decorator_mod.py [new file with mode: 0644]
Lib/test/test_doctest/doctest_lineno.py
Lib/test/test_doctest/test_doctest.py
Misc/NEWS.d/next/Library/2024-02-13-18-27-03.gh-issue-115392.gle5tp.rst [new file with mode: 0644]