[pypy-svn] r59559 - pypy/trunk/lib-python/modified-2.5.2/test

arigo at codespeak.net arigo at codespeak.net
Thu Oct 30 14:44:05 CET 2008


Author: arigo
Date: Thu Oct 30 14:44:03 2008
New Revision: 59559

Modified:
   pypy/trunk/lib-python/modified-2.5.2/test/test_descr.py
Log:
Make this test closer than the original.


Modified: pypy/trunk/lib-python/modified-2.5.2/test/test_descr.py
==============================================================================
--- pypy/trunk/lib-python/modified-2.5.2/test/test_descr.py	(original)
+++ pypy/trunk/lib-python/modified-2.5.2/test/test_descr.py	Thu Oct 30 14:44:03 2008
@@ -169,10 +169,10 @@
 
 def dicts():
     if verbose: print "Testing dict operations..."
-    testbinop({1:2}, {2:1}, False, "a == b", "__eq__")
-    testbinop({1:2}, {2:1}, True, "a != b", "__ne__")
     if hasattr(dict, '__cmp__'):      # PyPy has only rich comparison on dicts
         testbinop({1:2}, {2:1}, -1, "cmp(a,b)", "__cmp__")
+    else:
+        testbinop({1:2}, {2:1}, True, "a < b", "__lt__")
     testbinop({1:2,3:4}, 1, 1, "b in a", "__contains__")
     testbinop({1:2,3:4}, 2, 0, "b in a", "__contains__")
     testbinop({1:2,3:4}, 1, 2, "a[b]", "__getitem__")



More information about the Pypy-commit mailing list