Commits

Timo Paulssen  committed 9014cd3

fix whitebox test that checks for W_StringObject, rather than W_AbstractStringObject.

  • Participants
  • Parent commits 2116068
  • Branches strbuf_by_default

Comments (0)

Files changed (1)

File pypy/objspace/std/test/test_stdobjspace.py

         assert space.sliceindices(w_obj, w(3)) == (1,2,3)
 
     def test_fastpath_isinstance(self):
-        from pypy.objspace.std.stringobject import W_StringObject
+        from pypy.objspace.std.stringobject import W_AbstractStringObject, W_StringObject
         from pypy.objspace.std.intobject import W_IntObject
         from pypy.objspace.std.iterobject import W_AbstractSeqIterObject
         from pypy.objspace.std.iterobject import W_SeqIterObject
 
         space = self.space
-        assert space._get_interplevel_cls(space.w_str) is W_StringObject
+        assert space._get_interplevel_cls(space.w_str) is W_AbstractStringObject
         assert space._get_interplevel_cls(space.w_int) is W_IntObject
         class X(W_StringObject):
             def __init__(self):