]> 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:09:41 +0000 (01:09 -0700)
committerGitHub <noreply@github.com>
Thu, 28 Oct 2021 08:09:41 +0000 (01:09 -0700)
commit1f45cc0dfa9a8febfc256411c803b4536719db97
tree2049fe508942ef5439b1d5f0afd4e4f05c63c0be
parentce7a6afb797d2ffde45e9e902516b8437c8f9e31
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]