From 10b1cd9d809f0d47d5b4664d7ff55cb503fb085d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 29 May 2003 14:31:42 +0000 Subject: [PATCH] Remove debug code from weakref_segfault(). Also move the call of the test to the top; the crash is caused by a double free. --- Lib/test/test_descr.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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" -- 2.47.3