mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
fixed a problem with docstrings that were empty (None), docstrings in Jedi are always strings.
This commit is contained in:
@@ -38,3 +38,12 @@ def test_parse_function_doc_illegal_docstr():
|
||||
doesn't have a closing bracket.
|
||||
"""
|
||||
assert ('', '') == compiled._parse_function_doc(docstr)
|
||||
|
||||
|
||||
def test_doc():
|
||||
"""
|
||||
Even CompiledObject docs always return empty docstrings - not None, that's
|
||||
just a Jedi API definition.
|
||||
"""
|
||||
obj = compiled.CompiledObject(''.__getnewargs__)
|
||||
assert obj.doc == ''
|
||||
|
||||
Reference in New Issue
Block a user