Lines Matching refs:self
54 def wrapper(self, *args, **kwargs):
57 return test(self, *args, **kwargs)
66 def __init__(self, warnings_list):
67 self._warnings = warnings_list
68 self._last = 0
70 def __getattr__(self, attr):
71 if len(self._warnings) > self._last:
72 return getattr(self._warnings[-1], attr)
75 raise AttributeError("%r has no attribute %r" % (self, attr))
78 def warnings(self):
79 return self._warnings[self._last:]
81 def reset(self):
82 self._last = len(self._warnings)
140 with check_no_resource_warning(self):