diff options
Diffstat (limited to 'Lib/test/crashers/loosing_mro_ref.py')
-rw-r--r-- | Lib/test/crashers/loosing_mro_ref.py | 4 |
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 a8c6e63..b3bcd32 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): |