[pypy-commit] pypy strbuf_by_default: fix whitebox test that checks for W_StringObject, rather than W_AbstractStringObject.

timo_jbo noreply at buildbot.pypy.org
Tue Jan 10 14:03:54 CET 2012


Author: Timo Paulssen <timonator at perpetuum-immobile.de>
Branch: strbuf_by_default
Changeset: r51201:9014cd34145f
Date: 2012-01-10 13:56 +0100
http://bitbucket.org/pypy/pypy/changeset/9014cd34145f/

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

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
@@ -48,13 +48,13 @@
         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):


More information about the pypy-commit mailing list