[pypy-commit] pypy default: fix a test that was still trying to use W_TypeObject.interplevel_cls
alex_gaynor
noreply at buildbot.pypy.org
Thu Oct 27 21:42:53 CEST 2011
Author: Alex Gaynor <alex.gaynor at 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)
More information about the pypy-commit
mailing list