def setup_after_space_initialization(self): from pypy.objspace.std.transparent import register_proxyable from pypy.module.exceptions import interp_exceptions for name, exc in interp_exceptions.__dict__.items(): if isinstance(exc, type) and issubclass(exc, interp_exceptions.W_BaseException): register_proxyable(self.space, exc)
def setup_class(cls): if option.runappdirect: py.test.skip("Impossible to run on appdirect") AppProxy.setup_class.im_func(cls) cls.w_wrapped = cls.space.wrap(W_Wrapped()) register_proxyable(cls.space, W_Wrapped)
def setup_after_space_initialization(self): from pypy.module._file.interp_file import W_File from pypy.objspace.std.transparent import register_proxyable register_proxyable(self.space, W_File)
def setup_class(cls): AppProxy.setup_class.im_func(cls) cls.w_wrapped = cls.space.wrap(W_Wrapped()) register_proxyable(cls.space, W_Wrapped)