Author: Philip Jenvey <pjen...@underboss.org>
Branch: py3k
Changeset: r74268:6bd3457fb73c
Date: 2014-10-28 13:39 -0700
http://bitbucket.org/pypy/pypy/changeset/6bd3457fb73c/

Log:    adapt to py3

diff --git a/pypy/objspace/std/test/test_complexobject.py 
b/pypy/objspace/std/test/test_complexobject.py
--- a/pypy/objspace/std/test/test_complexobject.py
+++ b/pypy/objspace/std/test/test_complexobject.py
@@ -198,12 +198,12 @@
         assert large != (5+0j)
 
     def test_richcompare_numbers(self):
-        for n in 8, 8L, 0.01:
+        for n in 8, 0.01:
             assert complex.__eq__(n+0j, n)
             assert not complex.__ne__(n+0j, n)
             assert not complex.__eq__(complex(n, n), n)
             assert complex.__ne__(complex(n, n), n)
-            raises(TypeError, complex.__lt__, n+0j, n)
+            assert complex.__lt__(n+0j, n) is NotImplemented
 
     def test_richcompare_boundaries(self):
         z = 9007199254740992+0j
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to