1
0
forked from VimPlug/jedi

Remove get_defined_names in favor of names_dict in the parser tree.

This commit is contained in:
Dave Halter
2015-01-08 13:38:03 +01:00
parent a20fd12de9
commit 6d58fed0e8
3 changed files with 7 additions and 54 deletions

View File

@@ -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():