summaryrefslogtreecommitdiff
path: root/Lib/test/crashers/loosing_mro_ref.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-01-27 18:17:45 +0000
committerMark Dickinson <dickinsm@gmail.com>2009-01-27 18:17:45 +0000
commite3fa6230b8872e08cad4bb558395aff059ce6c5a (patch)
tree248ab67be63fc3bdf77f7cd4a0b5d8de72c973ac /Lib/test/crashers/loosing_mro_ref.py
parenta827877ca57ed8844c0c226f08d8e2edb8376676 (diff)
downloadcpython-e3fa6230b8872e08cad4bb558395aff059ce6c5a.tar.gz
Issue #1717: Remove cmp. Stage 1: remove all uses of cmp and __cmp__ from
the standard library and tests.
Diffstat (limited to 'Lib/test/crashers/loosing_mro_ref.py')
-rw-r--r--Lib/test/crashers/loosing_mro_ref.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/crashers/loosing_mro_ref.py b/Lib/test/crashers/loosing_mro_ref.py
index a8c6e63ee2..b3bcd32c58 100644
--- a/Lib/test/crashers/loosing_mro_ref.py
+++ b/Lib/test/crashers/loosing_mro_ref.py
@@ -10,7 +10,7 @@ class MyKey(object):
def __hash__(self):
return hash('mykey')
- def __cmp__(self, other):
+ def __eq__(self, other):
# the following line decrefs the previous X.__mro__
X.__bases__ = (Base2,)
# trash all tuples of length 3, to make sure that the items of
@@ -18,7 +18,7 @@ class MyKey(object):
z = []
for i in range(1000):
z.append((i, None, None))
- return -1
+ return 0
class Base(object):