-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Description
Hello, when we build ipython 8.25.0 in Fedora with Python 3.13.0b2, we see this test failure:
_________________________ test_pinfo_docstring_dynamic _________________________
def test_pinfo_docstring_dynamic():
obj_def = """class Bar:
__custom_documentations__ = {
"prop" : "cdoc for prop",
"non_exist" : "cdoc for non_exist",
}
@property
def prop(self):
'''
Docstring for prop
'''
return self._prop
@prop.setter
def prop(self, v):
self._prop = v
"""
ip.run_cell(obj_def)
ip.run_cell("b = Bar()")
with AssertPrints("Docstring: cdoc for prop"):
ip.run_line_magic("pinfo", "b.prop")
> with AssertPrints("Docstring: cdoc for non_exist"):
E AssertionError: Did not find 'Docstring: cdoc for non_exist' in printed output (on stdout):
E -------
E Type: NoneType
E String form: None
E Docstring: cdoc for non_exist
E Class docstring: The type of the None singleton.
E
E -------
E
E assert 'Docstring: cdoc for non_exist' in 'Type: NoneType\nString form: None\nDocstring: cdoc for non_exist\nClass docstring: The type of the None singleton.\n'
core/tests/test_oinspect.py:515: AssertionError
It seems related to the Compiler now strip indents from docstrings feature added in python/cpython#81283
I see some 3.13 commit in this repository, but I don't think there is an issue for this one yet.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels