From 94d374c9ceeb16ea1c6fe49b8e039d415c7dbe5a Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Wed, 22 Apr 2020 17:32:40 +0200 Subject: [PATCH] Fix a small issue with the help method, fixes #1556 --- test/test_api/test_documentation.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test_api/test_documentation.py b/test/test_api/test_documentation.py index 2aa6140a..584666b7 100644 --- a/test/test_api/test_documentation.py +++ b/test/test_api/test_documentation.py @@ -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)