]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44904: Fix classmethod property bug in doctest module (GH-28838)
authorAlex Waygood <Alex.Waygood@Gmail.com>
Thu, 28 Oct 2021 07:48:02 +0000 (08:48 +0100)
committerGitHub <noreply@github.com>
Thu, 28 Oct 2021 07:48:02 +0000 (10:48 +0300)
commitb1302abcc8a4be5f39b4d60a1ce28032b77655b3
tree6b31bb53a7b433b7f6955d8d7492d23a450ddb4e
parentd02ffd1b5c0fd8dec6dd2f7e3f2b0cfae48b7899
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.html#class-methods.)

Co-authored-by: Serhiy Storchaka <storchaka@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]