mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
Fix a small issue with the help method, fixes #1556
This commit is contained in:
@@ -115,3 +115,8 @@ def test_docstring_decorator(goto_or_help_or_infer, skip_python2):
|
|||||||
|
|
||||||
doc = d.docstring()
|
doc = d.docstring()
|
||||||
assert doc == 'FunctionType(*args: Any, **kwargs: Any) -> Any\n\nhello'
|
assert doc == 'FunctionType(*args: Any, **kwargs: Any) -> Any\n\nhello'
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize('code', ['', '\n', ' '])
|
||||||
|
def test_empty(Script, code):
|
||||||
|
assert not Script(code).help(1, 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user