Commit a37294da authored by Bram Schoenmakers's avatar Bram Schoenmakers

Assign to the variable in the outer scope.

parent 3d5f5417
...@@ -85,6 +85,7 @@ class DoCommandTest(CommandTest.CommandTest): ...@@ -85,6 +85,7 @@ class DoCommandTest(CommandTest.CommandTest):
prompt_shown = False prompt_shown = False
def prompt(p_prompt): def prompt(p_prompt):
global prompt_shown
prompt_shown = True prompt_shown = True
command = DoCommand.DoCommand(["-f", "1"], self.todolist, self.out, self.error, prompt) command = DoCommand.DoCommand(["-f", "1"], self.todolist, self.out, self.error, prompt)
...@@ -98,6 +99,7 @@ class DoCommandTest(CommandTest.CommandTest): ...@@ -98,6 +99,7 @@ class DoCommandTest(CommandTest.CommandTest):
prompt_shown = False prompt_shown = False
def prompt(p_prompt): def prompt(p_prompt):
global prompt_shown
prompt_shown = True prompt_shown = True
command = DoCommand.DoCommand(["--force", "1"], self.todolist, self.out, self.error, prompt) command = DoCommand.DoCommand(["--force", "1"], self.todolist, self.out, self.error, prompt)
......
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