mirror of
https://github.com/python/cpython
synced 2024-10-14 14:53:36 +00:00
gh-115249: Fix test_descr
with -OO
mode (#115250)
This commit is contained in:
parent
1a6e213877
commit
1f23837277
|
@ -1594,7 +1594,11 @@ def f(cls, arg):
|
|||
|
||||
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…
Reference in a new issue