commit | a8b976bd7f4b4349c9d872cd9212a2b3e9132a7a | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sun Oct 11 18:28:48 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Sun Oct 11 18:28:48 2009 +0000 |
tree | 4a10c2f12bf40a3206240967216cbb9997af0622 | |
parent | bc470d5023226dc1af3daa1c1bb5c221d9bba939 [diff] [blame] |
actually test a method that will be lookup in py3
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 @@ 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):