[Python-checkins] python/dist/src/Lib/test test_descr.py,1.113.4.31,1.113.4.32

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Thu, 29 May 2003 07:31:47 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv23690

Modified Files:
      Tag: release22-maint
	test_descr.py 
Log Message:
Remove debug code from weakref_segfault().

Also move the call of the test to the top; the crash is caused by a
double free.


Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.113.4.31
retrieving revision 1.113.4.32
diff -C2 -d -r1.113.4.31 -r1.113.4.32
*** test_descr.py	29 May 2003 14:21:29 -0000	1.113.4.31
--- test_descr.py	29 May 2003 14:31:42 -0000	1.113.4.32
***************
*** 3158,3163 ****
          def __del__(self):
              x = self.ref()
-             print x
-             return x
  
      class Oops(object):
--- 3158,3161 ----
***************
*** 3170,3173 ****
--- 3168,3172 ----
  
  def test_main():
+     weakref_segfault() # Must be first, somehow
      class_docstrings()
      lists()
***************
*** 3233,3237 ****
      subclass_right_op()
      dict_type_with_metaclass()
-     weakref_segfault()
  
      if verbose: print "All OK"
--- 3232,3235 ----