From: Guido van Rossum Date: Fri, 18 Jan 2008 23:05:40 +0000 (+0000) Subject: This got fixed for classic classes in r60057, X-Git-Tag: v2.6a1~552 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf4c7c8c0d851b239425b53b676c71a75c7d40c8;p=python This got fixed for classic classes in r60057, and backported to 2.5.2 in 60056. --- diff --git a/Lib/test/crashers/weakref_in_del.py b/Lib/test/crashers/weakref_in_del.py deleted file mode 100644 index 2e9b186837..0000000000 --- a/Lib/test/crashers/weakref_in_del.py +++ /dev/null @@ -1,17 +0,0 @@ -import weakref - -# http://python.org/sf/1377858 -# Fixed for new-style classes in 2.5c1. - -ref = None - -def test_weakref_in_del(): - class Target(): - def __del__(self): - global ref - ref = weakref.ref(self) - - w = Target() - -if __name__ == '__main__': - test_weakref_in_del()