1
0
forked from VimPlug/jedi

A property can raise an Exception, therefore the interpreter completion should check for those exceptions, fixes #538.

This commit is contained in:
Dave Halter
2015-03-24 15:26:00 +01:00
parent 54d8cd0a9b
commit 4bb41b6096
2 changed files with 11 additions and 1 deletions

View File

@@ -80,3 +80,13 @@ class TestInterpreterAPI(TestCase):
foo = Foo()
self.check_interpreter_complete('foo[0].', locals(), [])
def test_property_error(self):
class Foo():
@property
def bar(self):
raise ValueError
foo = Foo()
self.check_interpreter_complete('foo.bar', locals(), ['bar'])
self.check_interpreter_complete('foo.bar.baz', locals(), [])