[pypy-commit] pypy py3k: update rich comparisons
pjenvey
noreply at buildbot.pypy.org
Wed Feb 13 03:16:33 CET 2013
Author: Philip Jenvey <pjenvey at underboss.org>
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")
More information about the pypy-commit
mailing list