Commits

Anonymous committed 671e9c3

Remove debug code from weakref_segfault().

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

Comments (0)

Files changed (1)

Lib/test/test_descr.py

 
         def __del__(self):
             x = self.ref()
-            print x
-            return x
 
     class Oops(object):
         pass
 
 
 def test_main():
+    weakref_segfault() # Must be first, somehow
     class_docstrings()
     lists()
     dicts()
     funnynew()
     subclass_right_op()
     dict_type_with_metaclass()
-    weakref_segfault()
 
     if verbose: print "All OK"