[Python-checkins] r67877 - python/branches/py3k-issue1717/Lib/test/crashers/loosing_mro_ref.py
mark.dickinson
python-checkins at python.org
Sat Dec 20 18:13:46 CET 2008
Author: mark.dickinson
Date: Sat Dec 20 18:13:46 2008
New Revision: 67877
Log:
"Fix" loosing_mro_ref.py so that it crashes again.
(I'm not exactly sure whether this should be considered progress!)
Modified:
python/branches/py3k-issue1717/Lib/test/crashers/loosing_mro_ref.py
Modified: python/branches/py3k-issue1717/Lib/test/crashers/loosing_mro_ref.py
==============================================================================
--- python/branches/py3k-issue1717/Lib/test/crashers/loosing_mro_ref.py (original)
+++ python/branches/py3k-issue1717/Lib/test/crashers/loosing_mro_ref.py Sat Dec 20 18:13:46 2008
@@ -10,7 +10,7 @@
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 @@
z = []
for i in range(1000):
z.append((i, None, None))
- return -1
+ return 0
class Base(object):
More information about the Python-checkins
mailing list