Commit a8b976bd authored by Benjamin Peterson's avatar Benjamin Peterson

actually test a method that will be lookup in py3

parent bc470d50
...@@ -1022,8 +1022,8 @@ order (MRO) for bases """ ...@@ -1022,8 +1022,8 @@ order (MRO) for bases """
import sys,gc import sys,gc
if hasattr(gc, 'get_objects'): if hasattr(gc, 'get_objects'):
class G(object): class G(object):
def __cmp__(self, other): def __eq__(self, other):
return 0 return False
g = G() g = G()
orig_objects = len(gc.get_objects()) orig_objects = len(gc.get_objects())
for i in range(10): for i in range(10):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment