1
0
forked from VimPlug/jedi

FastModule should inherit from SubModule, because it has almost all the same properties.

This commit is contained in:
Dave Halter
2015-01-28 14:59:00 +01:00
parent 6ec89e6785
commit d0589430bb
4 changed files with 16 additions and 21 deletions

View File

@@ -113,14 +113,15 @@ def test_if():
x = 3
if x:
def y():
x
x = 3
return x
return y()
pass
func()
''')
# Two parsers needed, one for pass and one for the function.
check_fp(src, 2)
assert [d.name for d in jedi.Script(src, 8, 6).goto_definitions()] == ['int']
def test_incomplete_function():