Fix a small issue with the help method, fixes #1556

This commit is contained in:
Dave Halter
2020-04-22 17:32:40 +02:00
parent f3152a8c2b
commit 94d374c9ce

View File

@@ -115,3 +115,8 @@ def test_docstring_decorator(goto_or_help_or_infer, skip_python2):
doc = d.docstring()
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)