]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
actually test a method that will be lookup in py3
authorBenjamin Peterson <benjamin@python.org>
Sun, 11 Oct 2009 18:28:48 +0000 (18:28 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 11 Oct 2009 18:28:48 +0000 (18:28 +0000)
Lib/test/test_descr.py

index 804a5c94247d49953fa4fcc40cc899901fb52113..b6ef06d6ef0e40c21c165ff814ac65a00b4976f8 100644 (file)
@@ -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):