Skip to content

Commit

Permalink
pythongh-115249: Fix test_descr with -OO mode (python#115250)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Feb 11, 2024
1 parent 1a6e213 commit 1f23837
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Lib/test/test_descr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__}
Expand Down

0 comments on commit 1f23837

Please sign in to comment.