Author: Timo Paulssen <timona...@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): _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit