From: Guido van Rossum Date: Thu, 29 May 2003 14:31:42 +0000 (+0000) Subject: Remove debug code from weakref_segfault(). X-Git-Tag: v2.2.3~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10b1cd9d809f0d47d5b4664d7ff55cb503fb085d;p=thirdparty%2FPython%2Fcpython.git Remove debug code from weakref_segfault(). Also move the call of the test to the top; the crash is caused by a double free. --- diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index bf3768153929..0b7d69b594d5 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -3157,8 +3157,6 @@ def weakref_segfault(): def __del__(self): x = self.ref() - print x - return x class Oops(object): pass @@ -3169,6 +3167,7 @@ def weakref_segfault(): def test_main(): + weakref_segfault() # Must be first, somehow class_docstrings() lists() dicts() @@ -3232,7 +3231,6 @@ def test_main(): funnynew() subclass_right_op() dict_type_with_metaclass() - weakref_segfault() if verbose: print "All OK"