diff --git a/functions.py b/functions.py index 0e007877..8896014b 100644 --- a/functions.py +++ b/functions.py @@ -197,7 +197,6 @@ def complete(source, row, column, source_path): for s in scopes: completions += s.get_defined_names() - # remove duplicates completions = list(set(completions)) needs_dot = not dot and path diff --git a/test/run.py b/test/run.py index 89e7c3ce..4d6b3aae 100755 --- a/test/run.py +++ b/test/run.py @@ -40,7 +40,8 @@ def completion_test(source): fails += 1 else: # 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: print 'Solution not correct, received %s, wanted %s' % \ (comp_str, correct)