[pypy-commit] pypy remove-iter-smm: Unskip test_fastpath_isinstance() again.

Manuel Jacob noreply at buildbot.pypy.org
Wed May 22 22:16:04 CEST 2013


Author: Manuel Jacob
Branch: remove-iter-smm
Changeset: r64479:3adc7b42e56a
Date: 2013-05-22 22:01 +0200
http://bitbucket.org/pypy/pypy/changeset/3adc7b42e56a/

Log:	Unskip test_fastpath_isinstance() again.

diff --git a/pypy/objspace/std/objspace.py b/pypy/objspace/std/objspace.py
--- a/pypy/objspace/std/objspace.py
+++ b/pypy/objspace/std/objspace.py
@@ -19,6 +19,7 @@
 from pypy.objspace.std.dictmultiobject import W_DictMultiObject
 from pypy.objspace.std.floatobject import W_FloatObject
 from pypy.objspace.std.intobject import W_IntObject
+from pypy.objspace.std.iterobject import W_AbstractSeqIterObject
 from pypy.objspace.std.listobject import W_ListObject
 from pypy.objspace.std.longobject import W_LongObject, newlong
 from pypy.objspace.std.noneobject import W_NoneObject
@@ -668,6 +669,8 @@
         self._interplevel_classes[self.w_list] = W_ListObject
         self._interplevel_classes[self.w_set] = W_SetObject
         self._interplevel_classes[self.w_tuple] = W_AbstractTupleObject
+        self._interplevel_classes[self.w_sequenceiterator] = \
+                W_AbstractSeqIterObject
 
     @specialize.memo()
     def _get_interplevel_cls(self, w_type):
diff --git a/pypy/objspace/std/test/test_stdobjspace.py b/pypy/objspace/std/test/test_stdobjspace.py
--- a/pypy/objspace/std/test/test_stdobjspace.py
+++ b/pypy/objspace/std/test/test_stdobjspace.py
@@ -37,7 +37,6 @@
         assert space.sliceindices(w_obj, w(3)) == (1,2,3)
 
     def test_fastpath_isinstance(self):
-        py.test.skip("skipped until SMMs are removed")
         from pypy.objspace.std.stringobject import W_StringObject
         from pypy.objspace.std.intobject import W_IntObject
         from pypy.objspace.std.iterobject import W_AbstractSeqIterObject


More information about the pypy-commit mailing list