mirror of https://github.com/python/cpython
actually test a method that will be lookup in py3
This commit is contained in:
parent
bc470d5023
commit
a8b976bd7f
|
@ -1022,8 +1022,8 @@ order (MRO) for bases """
|
|||
import sys,gc
|
||||
if hasattr(gc, 'get_objects'):
|
||||
class G(object):
|
||||
def __cmp__(self, other):
|
||||
return 0
|
||||
def __eq__(self, other):
|
||||
return False
|
||||
g = G()
|
||||
orig_objects = len(gc.get_objects())
|
||||
for i in range(10):
|
||||
|
|
Loading…
Reference in New Issue