Author: Alex Gaynor <alex.gay...@gmail.com> Branch: Changeset: r48538:993b01fd53d4 Date: 2011-10-27 15:42 -0400 http://bitbucket.org/pypy/pypy/changeset/993b01fd53d4/
Log: fix a test that was still trying to use W_TypeObject.interplevel_cls 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 @@ -14,11 +14,11 @@ def test_int_w_non_int(self): raises(OperationError,self.space.int_w,self.space.wrap(None)) - raises(OperationError,self.space.int_w,self.space.wrap("")) + raises(OperationError,self.space.int_w,self.space.wrap("")) def test_uint_w_non_int(self): raises(OperationError,self.space.uint_w,self.space.wrap(None)) - raises(OperationError,self.space.uint_w,self.space.wrap("")) + raises(OperationError,self.space.uint_w,self.space.wrap("")) def test_multimethods_defined_on(self): from pypy.objspace.std.stdtypedef import multimethods_defined_on @@ -49,14 +49,14 @@ def test_fastpath_isinstance(self): from pypy.objspace.std.stringobject import W_StringObject from pypy.objspace.std.intobject import W_IntObject - + space = self.space - assert space.w_str.interplevel_cls is W_StringObject - assert space.w_int.interplevel_cls is W_IntObject + assert space._get_interplevel_cls(space.w_str) is W_StringObject + assert space._get_interplevel_cls(space.w_int) is W_IntObject class X(W_StringObject): def __init__(self): pass - + typedef = None assert space.isinstance_w(X(), space.w_str) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit