[pypy-commit] pypy py3k: adapt to py3

pjenvey noreply at buildbot.pypy.org
Tue Oct 28 21:41:09 CET 2014


Author: Philip Jenvey <pjenvey at 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


More information about the pypy-commit mailing list