def METHOD_NAME(self):
    stack_name = stack_namer(compilation_error_project)
    project_dir = test_path("errors", compilation_error_project, "go")
    stack = create_stack(stack_name, work_dir=project_dir)
    try:
        self.assertRaises(CompilationError, stack.up)
        self.assertRaisesRegex(CompilationError, ": syntax error:|: undefined:", stack.up)
    finally:
        stack.workspace.remove_stack(stack_name)