-
-
Notifications
You must be signed in to change notification settings - Fork 32k
@cached_property is not checked for doctests #107995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
#107996) Co-authored-by: Alex Waygood <[email protected]>
Thanks for the bug report, and for the fix, @tjsmart! Although the fix is very simple, and although I can't think of ways in which it might break people's code, it's the kind of thing that could have unexpected consequences. For that reason, I think we won't be backporting this fix, unfortunately -- you'll have to wait for Python 3.13 to see the fix. As such, I'm closing this issue out. Thanks again for the PR! |
…rojectStructure` of module `autodoctools` are run under all Python versions. See python/cpython#107995.
Checklist
and am confident this bug has not been reported before
CPython versions tested on:
3.10, CPython main branch
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
Python 3.13.0a0 (heads/main:607f18c894, Aug 15 2023, 08:58:26) [GCC 11.4.0]
A clear and concise description of the bug:
Doctests belonging to a
functools.cached_property
are not ran by doctest.Here is a minimal example (saved in a file
t.py
):If I then invoke doctest with this file, I'd expect to see an assertion error. Instead, this doctest is skipped:
Note, this issue was originally reported here: pytest-dev/pytest#11237.
Linked PRs
The text was updated successfully, but these errors were encountered: