mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-05 02:38:47 +08:00
many tests and fixes for instance element renamings
This commit is contained in:
1 parent
2534269cce
commit
45c9fe16b8
4 files changed
+71
-11
No files matched your search
+5
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user