Bound methods are now working correctly in all Python versions. Therefore a test was wrong.

This commit is contained in:
Dave Halter
2018-08-03 00:23:37 +02:00
parent 40d3abe2b2
commit 1a4be5c91c

View File

@@ -70,11 +70,7 @@ def test_method_completion(Script, environment):
foo = Foo()
foo.bar.__func__''')
if environment.version_info.major > 2:
result = []
else:
result = ['__func__']
assert [c.name for c in Script(code).completions()] == result
assert [c.name for c in Script(code).completions()] == ['__func__']
def test_time_docstring(Script):