Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r61158:46552d7beaa9
Date: 2013-02-12 18:14 -0800
http://bitbucket.org/pypy/pypy/changeset/46552d7beaa9/

Log:    update rich comparisons

diff --git a/pypy/interpreter/astcompiler/test/test_compiler.py 
b/pypy/interpreter/astcompiler/test/test_compiler.py
--- a/pypy/interpreter/astcompiler/test/test_compiler.py
+++ b/pypy/interpreter/astcompiler/test/test_compiler.py
@@ -668,8 +668,8 @@
                 #cmp
                 self.assert_(p == p)
                 self.assert_(d == d)
-                self.assert_(p < d)
-                self.assert_(d > p)
+                self.failUnlessRaises(TypeError, lambda: p < d)
+                self.failUnlessRaises(TypeError, lambda: d > p)
                 #__non__zero__
                 if p: self.fail("Empty mapping must compare to False")
                 if not d: self.fail("Full mapping must compare to True")
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to