Пример #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)
Пример #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)
Пример #3
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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)