From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 2 May 2025 13:27:30 +0000 (+0200) Subject: [3.13] gh-133210: Fix `test_descr` in `--without-doc-strings` mode (GH-133294) (... X-Git-Tag: v3.13.4~183 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a919d048826bdd9ac72c447011426a74c9a61d3;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-133210: Fix `test_descr` in `--without-doc-strings` mode (GH-133294) (#133298) gh-133210: Fix `test_descr` in `--without-doc-strings` mode (GH-133294) (cherry picked from commit ba16ba3a18e86e094bcd215892b49fb08c74ec0a) Co-authored-by: sobolevn --- diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index ebea459f1ac6..be49ce8c0660 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -1588,7 +1588,7 @@ class ClassPropertiesAndMethods(unittest.TestCase, ExtraAssertions): cm_dict = {'__annotations__': {}, '__doc__': ( "f docstring" - if support.HAVE_DOCSTRINGS + if support.HAVE_PY_DOCSTRINGS else None ), '__module__': __name__,