summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@wyplay.com>2012-03-09 12:59:42 (GMT)
committerVictor Stinner <vstinner@wyplay.com>2012-03-09 12:59:42 (GMT)
commit63ed5664a1482539d073a6567b761134b6708700 (patch)
treeeb495a2225cb9516177f8fcaf7f38875ff1ccb9f
parent865756a94cf4f34ea27ce70b5160fd8ff3199a73 (diff)
downloadcpython-63ed5664a1482539d073a6567b761134b6708700.zip
cpython-63ed5664a1482539d073a6567b761134b6708700.tar.gz
cpython-63ed5664a1482539d073a6567b761134b6708700.tar.bz2
Issue #14231: Lib/test/crashers/borrowed_ref_1.py was fixed by ba6376dff6c4.
-rw-r--r--Lib/test/crashers/borrowed_ref_1.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/Lib/test/crashers/borrowed_ref_1.py b/Lib/test/crashers/borrowed_ref_1.py
deleted file mode 100644
index b82f464..0000000
--- a/Lib/test/crashers/borrowed_ref_1.py
+++ /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,)