summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descr.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-10-11 18:28:48 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-10-11 18:28:48 (GMT)
commita8b976bd7f4b4349c9d872cd9212a2b3e9132a7a (patch)
tree4a10c2f12bf40a3206240967216cbb9997af0622 /Lib/test/test_descr.py
parentbc470d5023226dc1af3daa1c1bb5c221d9bba939 (diff)
downloadcpython-a8b976bd7f4b4349c9d872cd9212a2b3e9132a7a.zip
cpython-a8b976bd7f4b4349c9d872cd9212a2b3e9132a7a.tar.gz
cpython-a8b976bd7f4b4349c9d872cd9212a2b3e9132a7a.tar.bz2
actually test a method that will be lookup in py3
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r--Lib/test/test_descr.py4
1 files 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):