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>
This commit is contained in:
Alex Waygood 2021-10-28 08:48:02 +01:00 committed by GitHub
parent d02ffd1b5c
commit b1302abcc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 4 deletions

View file

@ -1885,6 +1885,7 @@ Bob Watson
Colin Watson
David Watson
Aaron Watters
Alex Waygood
Henrik Weber
Leon Weber
Steve Weber