Example #1
0
    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)
Example #2
0
    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)
Example #4
0
 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)
Example #5
0
 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)
Example #6
0
 def setup_class(cls):
     AppProxy.setup_class.im_func(cls)
     cls.w_wrapped = cls.space.wrap(W_Wrapped())
     register_proxyable(cls.space, W_Wrapped)
Example #7
0
 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)
Example #8
0
 def setup_class(cls):
     AppProxy.setup_class.im_func(cls)
     cls.w_wrapped = cls.space.wrap(W_Wrapped())
     register_proxyable(cls.space, W_Wrapped)