]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44904: Fix classmethod property bug in doctest module (GH-28838)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 28 Oct 2021 08:13:45 +0000 (01:13 -0700)
committerGitHub <noreply@github.com>
Thu, 28 Oct 2021 08:13:45 +0000 (01:13 -0700)
commit8365a5b5abe51cbe4151d89a5d0a993273320067
tree606e52313ef795bc83aa199144774bedbc008019
parent21150c6fa330f80747d698e4b883c7b4801a25bd
bpo-44904: Fix classmethod property bug in doctest module (GH-28838)

The doctest module raised an error if a docstring contained an example that
attempted to access a classmethod property. (Stacking '@classmethod' on top of
`@property` has been supported since Python 3.9; see
https://docs.python.org/3/howto/descriptor.htmlGH-class-methods.)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit b1302abcc8a4be5f39b4d60a1ce28032b77655b3)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Lib/doctest.py
Lib/test/test_doctest.py
Misc/ACKS
Misc/NEWS.d/next/Library/2021-10-09-18-42-27.bpo-44904.RlW5h8.rst [new file with mode: 0644]