From 12f878a4f7ec622a1c6af8a8ae1cabc53ee6c0c4 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 4 Jun 2016 01:06:13 +0200 Subject: [PATCH] Test for the issue #589. --- test/test_parser/test_fast_parser.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/test_parser/test_fast_parser.py b/test/test_parser/test_fast_parser.py index d9b202af..a80a0984 100644 --- a/test/test_parser/test_fast_parser.py +++ b/test/test_parser/test_fast_parser.py @@ -441,3 +441,17 @@ def test_string_literals(): script = jedi.Script(dedent(source)) assert script.completions() + + +def test_decorator_string_issue(): + """ + Test case from #589 + """ + s = jedi.Script(dedent('''\ + """ + @""" + def bla(): + pass + + bla.''')) + assert s.completions()