gh-133210: Fix test_descr in --without-doc-strings mode (#133294)

This commit is contained in:
sobolevn 2025-05-02 16:04:27 +03:00 committed by GitHub
parent 641253cfac
commit ba16ba3a18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View 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__,