]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-133210: Fix `test_descr` in `--without-doc-strings` mode (#133294)
authorsobolevn <mail@sobolevn.me>
Fri, 2 May 2025 13:04:27 +0000 (16:04 +0300)
committerGitHub <noreply@github.com>
Fri, 2 May 2025 13:04:27 +0000 (13:04 +0000)
Lib/test/test_descr.py

index 8e9d44a583cb31e478886416a8fce3a02cf0f232..76937432a43037e64186105594dec078d55410a1 100644 (file)
@@ -1589,7 +1589,7 @@ class ClassPropertiesAndMethods(unittest.TestCase):
         cm = classmethod(f)
         cm_dict = {'__doc__': (
                        "f docstring"
-                       if support.HAVE_DOCSTRINGS
+                       if support.HAVE_PY_DOCSTRINGS
                        else None
                     ),
                    '__module__': __name__,