mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-115249: Fix test_descr
with -OO
mode (#115250)
This commit is contained in:
parent
1a6e213877
commit
1f23837277
1 changed files with 5 additions and 1 deletions
|
@ -1594,7 +1594,11 @@ class ClassPropertiesAndMethods(unittest.TestCase):
|
|||
|
||||
cm = classmethod(f)
|
||||
cm_dict = {'__annotations__': {},
|
||||
'__doc__': "f docstring",
|
||||
'__doc__': (
|
||||
"f docstring"
|
||||
if support.HAVE_DOCSTRINGS
|
||||
else None
|
||||
),
|
||||
'__module__': __name__,
|
||||
'__name__': 'f',
|
||||
'__qualname__': f.__qualname__}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue