diff options
author | Mark Florisson <markflorisson88@gmail.com> | 2011-05-30 16:24:44 +0200 |
---|---|---|
committer | Mark Florisson <markflorisson88@gmail.com> | 2011-07-14 11:47:35 +0200 |
commit | dca9489a0cf78b64c9ab5efaf92bce2ee732b0b5 (patch) | |
tree | 26843ba5ee07196db182afd9a4e4f47637d17702 /Cython/Compiler/Tests/TestParseTreeTransforms.py | |
parent | ef63164c3fca6607e9509934d9b080f7369f874a (diff) | |
download | cython-dca9489a0cf78b64c9ab5efaf92bce2ee732b0b5.tar.gz |
Fix a failing test
Diffstat (limited to 'Cython/Compiler/Tests/TestParseTreeTransforms.py')
-rw-r--r-- | Cython/Compiler/Tests/TestParseTreeTransforms.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Cython/Compiler/Tests/TestParseTreeTransforms.py b/Cython/Compiler/Tests/TestParseTreeTransforms.py index 56a22999f..67b060d5c 100644 --- a/Cython/Compiler/Tests/TestParseTreeTransforms.py +++ b/Cython/Compiler/Tests/TestParseTreeTransforms.py @@ -4,7 +4,7 @@ from Cython.Compiler import CmdLine from Cython.TestUtils import TransformTest from Cython.Compiler.ParseTreeTransforms import * from Cython.Compiler.Nodes import * -from Cython.Compiler import Main +from Cython.Compiler import Main, Symtab class TestNormalizeTree(TransformTest): @@ -180,9 +180,10 @@ class TestInterpretCompilerDirectives(TransformTest): compilation_options = Main.CompilationOptions(Main.default_options) 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 |