]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-28249: fix `lineno` location for empty `DocTest` instances (GH-30498) (GH-92978)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 19 May 2022 18:03:06 +0000 (11:03 -0700)
committerGitHub <noreply@github.com>
Thu, 19 May 2022 18:03:06 +0000 (20:03 +0200)
commit57d7ddd6072ef8996f60ac06d6e2b2484692171b
tree6e41efe5e41e6db6a06c0512e5c82b07b0404ed0
parent0f1748d66e3acfd897297218fa1d552e587f7467
bpo-28249: fix `lineno` location for empty `DocTest` instances (GH-30498) (GH-92978)

(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]