[pypy-commit] pypy py3k: Fix for test_hash
arigo
pypy.commits at gmail.com
Thu Sep 22 09:59:54 EDT 2016
Author: Armin Rigo <arigo at 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):
More information about the pypy-commit
mailing list