[pypy-svn] r73059 - pypy/trunk/pypy/objspace/std/test
benjamin at codespeak.net
benjamin at codespeak.net
Mon Mar 29 01:39:36 CEST 2010
Author: benjamin
Date: Mon Mar 29 01:39:35 2010
New Revision: 73059
Modified:
pypy/trunk/pypy/objspace/std/test/test_smallintobject.py
Log:
let's have some tests for small int with optimized add
Modified: pypy/trunk/pypy/objspace/std/test/test_smallintobject.py
==============================================================================
--- pypy/trunk/pypy/objspace/std/test/test_smallintobject.py (original)
+++ pypy/trunk/pypy/objspace/std/test/test_smallintobject.py Mon Mar 29 01:39:35 2010
@@ -8,6 +8,7 @@
from pypy.objspace.std.objspace import FailedToImplement
from pypy.rlib.rarithmetic import r_uint
+from pypy.objspace.std.test.test_intobject import AppTestInt
from pypy.conftest import gettestobjspace
class TestW_IntObject:
@@ -223,3 +224,10 @@
f1 = wrapint(self.space, x)
result = self.space.hex(f1)
assert self.space.unwrap(result) == hex(x)
+
+
+class AppTestSmallInt(AppTestInt):
+
+ def setup_class(cls):
+ cls.space = gettestobjspace(**{"objspace.std.optimized_int_add" : True,
+ "objspace.std.withsmallint" : True})
More information about the Pypy-commit
mailing list