mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-30 16:54:20 +08:00
changed tests to not fail if they receive multiple inputs -> this is NOT the right behaviour
This commit is contained in:
@@ -197,7 +197,6 @@ def complete(source, row, column, source_path):
|
|||||||
for s in scopes:
|
for s in scopes:
|
||||||
completions += s.get_defined_names()
|
completions += s.get_defined_names()
|
||||||
|
|
||||||
# remove duplicates
|
|
||||||
completions = list(set(completions))
|
completions = list(set(completions))
|
||||||
|
|
||||||
needs_dot = not dot and path
|
needs_dot = not dot and path
|
||||||
|
|||||||
@@ -40,7 +40,8 @@ def completion_test(source):
|
|||||||
fails += 1
|
fails += 1
|
||||||
else:
|
else:
|
||||||
# TODO remove sorted? completions should be sorted?
|
# TODO remove sorted? completions should be sorted?
|
||||||
comp_str = str(sorted([str(c) for c in completions]))
|
# TODO remove set! duplicates should not be normal
|
||||||
|
comp_str = str(sorted(set([str(c) for c in completions])))
|
||||||
if comp_str != correct:
|
if comp_str != correct:
|
||||||
print 'Solution not correct, received %s, wanted %s' % \
|
print 'Solution not correct, received %s, wanted %s' % \
|
||||||
(comp_str, correct)
|
(comp_str, correct)
|
||||||
|
|||||||
Reference in New Issue
Block a user