summaryrefslogtreecommitdiffstats
path: root/Lib/test/crashers/weakref_in_del.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/crashers/weakref_in_del.py')
-rw-r--r--Lib/test/crashers/weakref_in_del.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/crashers/weakref_in_del.py b/Lib/test/crashers/weakref_in_del.py
index 3bbcfc3..2e9b186 100644
--- a/Lib/test/crashers/weakref_in_del.py
+++ b/Lib/test/crashers/weakref_in_del.py
@@ -1,11 +1,12 @@
import weakref
# http://python.org/sf/1377858
+# Fixed for new-style classes in 2.5c1.
ref = None
def test_weakref_in_del():
- class Target(object):
+ class Target():
def __del__(self):
global ref
ref = weakref.ref(self)