[pypy-commit] pypy py3k: Fix a test in test_longobject.py

amauryfa noreply at buildbot.pypy.org
Tue Jan 17 00:26:34 CET 2012


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3k
Changeset: r51370:dcae009093d8
Date: 2012-01-16 20:54 +0100
http://bitbucket.org/pypy/pypy/changeset/dcae009093d8/

Log:	Fix a test in test_longobject.py

diff --git a/pypy/objspace/std/longtype.py b/pypy/objspace/std/longtype.py
--- a/pypy/objspace/std/longtype.py
+++ b/pypy/objspace/std/longtype.py
@@ -40,6 +40,7 @@
                 w_obj = space.int(w_obj)
             else:
                 w_obj = space.trunc(w_obj)
+                w_obj = space.int(w_obj)
             return w_obj
     else:
         base = space.int_w(w_base)


More information about the pypy-commit mailing list