Tests: fix Show Referring Objects
@@ -127,6 +127,7 @@ def get_referrer_info(searched_obj):
'Referrers of obj with id="%s"' % (obj_id,)))
ret.append('</for>\n')
+ curr_frame = sys._getframe()
all_objects = None
for r in referrers:
@@ -139,6 +140,9 @@ def get_referrer_info(searched_obj):
if r is referrers:
continue
+ if r is curr_frame.f_locals:
+ continue
+
r_type = type(r)
r_id = str(id(r))
