]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-133210: Fix `test_descr` in `--without-doc-strings` mode (GH-133294) (...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 2 May 2025 13:27:30 +0000 (15:27 +0200)
committerGitHub <noreply@github.com>
Fri, 2 May 2025 13:27:30 +0000 (13:27 +0000)
gh-133210: Fix `test_descr` in `--without-doc-strings` mode (GH-133294)
(cherry picked from commit ba16ba3a18e86e094bcd215892b49fb08c74ec0a)

Co-authored-by: sobolevn <mail@sobolevn.me>
Lib/test/test_descr.py

index ebea459f1ac6b7b5abc5be38ccef9ae22cb1b6f1..be49ce8c0660af7fe9d2e5879fdd57809c1495cd 100644 (file)
@@ -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__,