forked from VimPlug/jedi
Remove get_defined_names in favor of names_dict in the parser tree.
This commit is contained in:
@@ -56,7 +56,7 @@ def test_carriage_return_splitting():
|
||||
'''))
|
||||
source = source.replace('\n', '\r\n')
|
||||
p = FastParser(load_grammar(), source)
|
||||
assert [str(n) for n in p.module.get_defined_names()] == ['Foo']
|
||||
assert [n.value for lst in p.module.names_dict.values() for n in lst] == ['Foo']
|
||||
|
||||
|
||||
def test_change_and_undo():
|
||||
|
||||
Reference in New Issue
Block a user