diff options
author | Alex Waygood <Alex.Waygood@Gmail.com> | 2021-10-28 07:48:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-28 07:48:02 (GMT) |
commit | b1302abcc8a4be5f39b4d60a1ce28032b77655b3 (patch) | |
tree | 6b31bb53a7b433b7f6955d8d7492d23a450ddb4e /Misc | |
parent | d02ffd1b5c0fd8dec6dd2f7e3f2b0cfae48b7899 (diff) | |
download | cpython-b1302abcc8a4be5f39b4d60a1ce28032b77655b3.zip cpython-b1302abcc8a4be5f39b4d60a1ce28032b77655b3.tar.gz cpython-b1302abcc8a4be5f39b4d60a1ce28032b77655b3.tar.bz2 |
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>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2021-10-09-18-42-27.bpo-44904.RlW5h8.rst | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -1885,6 +1885,7 @@ Bob Watson Colin Watson David Watson Aaron Watters +Alex Waygood Henrik Weber Leon Weber Steve Weber diff --git a/Misc/NEWS.d/next/Library/2021-10-09-18-42-27.bpo-44904.RlW5h8.rst b/Misc/NEWS.d/next/Library/2021-10-09-18-42-27.bpo-44904.RlW5h8.rst new file mode 100644 index 0000000..b02d499 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-10-09-18-42-27.bpo-44904.RlW5h8.rst @@ -0,0 +1,3 @@ +Fix bug in the :mod:`doctest` module that caused it to fail if a docstring +included an example with a ``classmethod`` ``property``. Patch by Alex +Waygood. |