mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
actually test a method that will be lookup in py3
This commit is contained in:
parent
bc470d5023
commit
a8b976bd7f
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue