1
0
forked from VimPlug/jedi

many tests and fixes for instance element renamings

This commit is contained in:
David Halter
2012-12-26 22:56:56 +01:00
parent 2534269cce
commit 45c9fe16b8
4 changed files with 71 additions and 11 deletions

View File

@@ -88,7 +88,11 @@ def run_related_name_test(script, correct, line_nr):
compare = sorted((r.module_name, r.start_pos[0], r.start_pos[1])
for r in result)
wanted = []
for pos_tup in literal_eval(correct):
if not correct:
positions = []
else:
positions = literal_eval(correct)
for pos_tup in positions:
if type(pos_tup[0]) == str:
# this means that there is a module specified
wanted.append(pos_tup)