]> granicus.if.org Git - python/commitdiff
Issue #14231: Lib/test/crashers/borrowed_ref_1.py was fixed by ba6376dff6c4.
authorVictor Stinner <vstinner@wyplay.com>
Fri, 9 Mar 2012 12:59:42 +0000 (13:59 +0100)
committerVictor Stinner <vstinner@wyplay.com>
Fri, 9 Mar 2012 12:59:42 +0000 (13:59 +0100)
Lib/test/crashers/borrowed_ref_1.py [deleted file]

diff --git a/Lib/test/crashers/borrowed_ref_1.py b/Lib/test/crashers/borrowed_ref_1.py
deleted file mode 100644 (file)
index b82f464..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-"""
-_PyType_Lookup() returns a borrowed reference.
-This attacks the call in dictobject.c.
-"""
-
-class A(object):
-    pass
-
-class B(object):
-    def __del__(self):
-        print('hi')
-        del D.__missing__
-
-class D(dict):
-    class __missing__:
-        def __init__(self, *args):
-            pass
-
-
-d = D()
-a = A()
-a.cycle = a
-a.other = B()
-del a
-
-prev = None
-while 1:
-    d[5]
-    prev = (prev,)