summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-05-19 15:46:15 (GMT)
committerGitHub <noreply@github.com>2022-05-19 15:46:15 (GMT)
commit8db2b3b6878aba9f12844526bce966b7eed81aee (patch)
treec25ebe4f9cb418ece49f9c84207cc1679462e7b0 /Misc
parent09be18a73d81aa82cc57a782f3b0a9811e43ad3b (diff)
downloadcpython-8db2b3b6878aba9f12844526bce966b7eed81aee.zip
cpython-8db2b3b6878aba9f12844526bce966b7eed81aee.tar.gz
cpython-8db2b3b6878aba9f12844526bce966b7eed81aee.tar.bz2
bpo-28249: fix `lineno` location for empty `DocTest` instances (GH-30498)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2022-01-09-14-23-00.bpo-28249.4dzB80.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-01-09-14-23-00.bpo-28249.4dzB80.rst b/Misc/NEWS.d/next/Library/2022-01-09-14-23-00.bpo-28249.4dzB80.rst
new file mode 100644
index 0000000..b5f1312
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-01-09-14-23-00.bpo-28249.4dzB80.rst
@@ -0,0 +1,2 @@
+Set :attr:`doctest.DocTest.lineno` to ``None`` when object does not have
+:attr:`__doc__`.