[Python-checkins] r75362 - python/branches/py3k/Lib/test/test_descr.py

benjamin.peterson python-checkins at python.org
Sun Oct 11 20:28:48 CEST 2009


Author: benjamin.peterson
Date: Sun Oct 11 20:28:48 2009
New Revision: 75362

Log:
actually test a method that will be lookup in py3

Modified:
   python/branches/py3k/Lib/test/test_descr.py

Modified: python/branches/py3k/Lib/test/test_descr.py
==============================================================================
--- python/branches/py3k/Lib/test/test_descr.py	(original)
+++ python/branches/py3k/Lib/test/test_descr.py	Sun Oct 11 20:28:48 2009
@@ -1022,8 +1022,8 @@
         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):


More information about the Python-checkins mailing list