forked from VimPlug/jedi
changed the way the tests react, when multiple elements are produced
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user