mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-20 20:41:13 +08:00
fix for problems with incomplete one liner string literals, after a start of an incomplete string literal the whole line should be seen as an error token
This commit is contained in:
@@ -162,8 +162,10 @@ class TestCallSignatures(TestCase):
|
||||
assert x == ['*args']
|
||||
|
||||
def test_additional_brackets(self):
|
||||
s = 'str(('
|
||||
self._run(s, 'str', 0)
|
||||
self._run('str((', 'str', 0)
|
||||
|
||||
def test_unterminated_strings(self):
|
||||
self._run('str(";', 'str', 0)
|
||||
|
||||
|
||||
class TestParams(TestCase):
|
||||
|
||||
Reference in New Issue
Block a user