mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
Bound methods are now working correctly in all Python versions. Therefore a test was wrong.
This commit is contained in:
@@ -70,11 +70,7 @@ def test_method_completion(Script, environment):
|
|||||||
|
|
||||||
foo = Foo()
|
foo = Foo()
|
||||||
foo.bar.__func__''')
|
foo.bar.__func__''')
|
||||||
if environment.version_info.major > 2:
|
assert [c.name for c in Script(code).completions()] == ['__func__']
|
||||||
result = []
|
|
||||||
else:
|
|
||||||
result = ['__func__']
|
|
||||||
assert [c.name for c in Script(code).completions()] == result
|
|
||||||
|
|
||||||
|
|
||||||
def test_time_docstring(Script):
|
def test_time_docstring(Script):
|
||||||
|
|||||||
Reference in New Issue
Block a user