Home | History | Annotate | Download | only in test

Lines Matching refs:__del__

131             def __del__(self): pass
155 def __del__(self): pass
216 # __del__ methods can trigger collection, make this to happen
222 def __del__(self):
231 # __del__ methods can trigger collection, make this to happen
237 def __del__(self):
276 def __del__(self):
328 def __del__(self):
329 # This __del__ is called by subtype_dealloc().
336 # Now that __del__ is finished, subtype_dealloc will proceed
386 # Boom.__getattr__ (to see whether a and b have __del__ methods), and
390 # whether __del__ exists. This used to (before 2.3b1) crash Python.
415 # cycle until the second time gc checks for __del__. As of 2.3b1,
621 # test_bug1055820c, but uses a __del__ method instead of a weakref
626 def __del__(self):
648 # d0 has a __del__ method that references c2wr
665 # generation) and d0's __del__ triggers. That in turn materializes
680 self.assertEqual(len(ouch), 1) # else __del__ wasn't invoked
682 # If __del__ resurrected c2, the instance would be damaged, with an