Errortokens should also make the parser fail in the normal parser.

This commit is contained in:
Dave Halter
2015-12-20 23:11:52 +01:00
parent 5791860861
commit c15551ccc1
3 changed files with 5 additions and 2 deletions

View File

@@ -51,6 +51,7 @@ def test_illegal_forward_references(reference):
assert not jedi.Script(source).goto_definitions()
@pytest.mark.skipif('sys.version_info[0] < 3')
def test_lambda_forward_references():
source = 'def foo(bar: "lambda: 3"): bar'