1
0
forked from VimPlug/jedi

changed the way the tests react, when multiple elements are produced

This commit is contained in:
David Halter
2012-07-12 16:19:47 +02:00
parent c84ca8f897
commit 4739eb6c02
5 changed files with 12 additions and 11 deletions

View File

@@ -65,7 +65,7 @@ def run_definition_test(correct, source, line_nr, line, correct_start):
return 1
# because the objects have different ids, `repr` it, then compare it.
should_str = sorted(str(r) for r in should_be)
is_str = sorted(str(r) for r in result)
is_str = sorted(set(str(r) for r in result))
if is_str != should_str:
print('Solution @%s not right, received %s, wanted %s' \
% (line_nr - 1, is_str, should_str))