testing should now work without duplicates

This commit is contained in:
David Halter
2012-09-22 16:36:39 +02:00
parent c7e8278ca4
commit 5982c7c93d
3 changed files with 10 additions and 3 deletions

View File

@@ -340,7 +340,7 @@ class Script(object):
else:
names.append(dynamic.RelatedName(d.names[0], d))
return sorted(names, key=lambda x: (x.module_path, x.start_pos))
return sorted(set(names), key=lambda x: (x.module_path, x.start_pos))
def get_in_function_call(self):
"""