mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
getattr is now also allowed on modules, fixes #116
This commit is contained in:
@@ -238,6 +238,11 @@ class TestRegression(TestBase):
|
||||
# jedi-vim #70
|
||||
s = """def foo("""
|
||||
assert self.function_definition(s) is None
|
||||
jedi.set_debug_function(jedi.debug.print_to_stdout)
|
||||
# jedi-vim #116
|
||||
s = """import functools; test = getattr(functools, 'partial'); test("""
|
||||
check(self.function_definition(s), 'partial', 0)
|
||||
jedi.set_debug_function(None)
|
||||
|
||||
@unittest.skip("function_definition at ``f( |)`` does not work")
|
||||
def test_function_definition_empty_paren_pre_space(self):
|
||||
|
||||
Reference in New Issue
Block a user