Author: Armin Rigo <ar...@tunes.org>
Branch: py3k
Changeset: r87326:c15a7ecf51e6
Date: 2016-09-22 15:59 +0200
http://bitbucket.org/pypy/pypy/changeset/c15a7ecf51e6/

Log:    Fix for test_hash

diff --git a/pypy/objspace/std/test/test_smalllongobject.py 
b/pypy/objspace/std/test/test_smalllongobject.py
--- a/pypy/objspace/std/test/test_smalllongobject.py
+++ b/pypy/objspace/std/test/test_smalllongobject.py
@@ -49,9 +49,10 @@
 
     def setup_class(cls):
         from pypy.interpreter import gateway
-        from pypy.objspace.std.smalllongobject import W_SmallLongObject
         def w__long(space, w_obj):
-            return W_SmallLongObject.frombigint(space.bigint_w(w_obj))
+            assert space.config.objspace.std.withsmalllong
+            b = space.bigint_w(w_obj)
+            return space.wraplong(b.tolong())
         cls.w__long = cls.space.wrap(gateway.interp2app(w__long))
 
     def test_sl_simple(self):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to