From a8b976bd7f4b4349c9d872cd9212a2b3e9132a7a Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 11 Oct 2009 18:28:48 +0000 Subject: actually test a method that will be lookup in py3 --- Lib/test/test_descr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 804a5c9..b6ef06d 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -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): -- cgit v0.12