def setUp(self):
     super(TestTypeInjection, self).setUp()
     compilation_options = Options.CompilationOptions(
         Options.default_options)
     ctx = Main.Context.from_options(compilation_options)
     transform = InterpretCompilerDirectives(ctx, ctx.compiler_directives)
     transform.module_scope = Symtab.ModuleScope('__main__', None, ctx)
     self.declarations_finder = DeclarationsFinder()
     self.pipeline = [
         NormalizeTree(None), transform, self.declarations_finder
     ]
Пример #2
0
    def setUp(self):
        super(TestInterpretCompilerDirectives, self).setUp()

        compilation_options = Options.CompilationOptions(Options.default_options)
        ctx = Main.Context.from_options(compilation_options)

        transform = InterpretCompilerDirectives(ctx, ctx.compiler_directives)
        transform.module_scope = Symtab.ModuleScope('__main__', None, ctx)
        self.pipeline = [transform]

        self.debug_exception_on_error = DebugFlags.debug_exception_on_error