1
0
forked from VimPlug/jedi

The Lambda type should be lambdef, not lambda. Use the grammar types.

This commit is contained in:
Dave Halter
2017-04-11 18:28:25 +02:00
parent 685e630c03
commit 6190a65f23
5 changed files with 9 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ class TestsFunctionAndLambdaParsing(object):
return request.keywords['expected']
def test_name(self, node, expected):
if node.type != 'lambda':
if node.type != 'lambdef':
assert isinstance(node.name, tree.Name)
assert unicode(node.name) == u(expected['name'])