]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] bpo-28249: fix `lineno` location for empty `DocTest` instances (GH-30498)...
authorŁukasz Langa <lukasz@langa.pl>
Thu, 19 May 2022 19:16:57 +0000 (21:16 +0200)
committerGitHub <noreply@github.com>
Thu, 19 May 2022 19:16:57 +0000 (21:16 +0200)
commitc146525844b716e73386205ee8bed9268cc73fc8
tree08f86ca00e38d65868ada13cb66556def07f0daa
parent5d7f3dc3dca506cf23c7a502c5083b44cf759a1c
[3.10] bpo-28249: fix `lineno` location for empty `DocTest` instances (GH-30498) (#92981)

(cherry picked from commit 8db2b3b6878aba9f12844526bce966b7eed81aee)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Lib/doctest.py
Lib/test/doctest_lineno.py [new file with mode: 0644]
Lib/test/test_doctest.py
Misc/NEWS.d/next/Library/2022-01-09-14-23-00.bpo-28249.4dzB80.rst [new file with mode: 0644]