Commit dca9489a authored by Mark Florisson's avatar Mark Florisson

Fix a failing test

parent ef63164c
...@@ -4,7 +4,7 @@ from Cython.Compiler import CmdLine ...@@ -4,7 +4,7 @@ from Cython.Compiler import CmdLine
from Cython.TestUtils import TransformTest from Cython.TestUtils import TransformTest
from Cython.Compiler.ParseTreeTransforms import * from Cython.Compiler.ParseTreeTransforms import *
from Cython.Compiler.Nodes import * from Cython.Compiler.Nodes import *
from Cython.Compiler import Main from Cython.Compiler import Main, Symtab
class TestNormalizeTree(TransformTest): class TestNormalizeTree(TransformTest):
...@@ -180,9 +180,10 @@ class TestInterpretCompilerDirectives(TransformTest): ...@@ -180,9 +180,10 @@ class TestInterpretCompilerDirectives(TransformTest):
compilation_options = Main.CompilationOptions(Main.default_options) compilation_options = Main.CompilationOptions(Main.default_options)
ctx = compilation_options.create_context() ctx = compilation_options.create_context()
self.pipeline = [
InterpretCompilerDirectives(ctx, ctx.compiler_directives), 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 self.debug_exception_on_error = DebugFlags.debug_exception_on_error
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment