summaryrefslogtreecommitdiff
path: root/tests/test_cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-03-19 19:34:30 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-03-19 19:34:30 -0400
commitc319cd3dfdedf1df6b772855d2936af3c0ab205d (patch)
tree811a8250c8e52ae7d2ff3763f309628ed15d395e /tests/test_cmd2.py
parent1cd0a38cac5482bdf274f42ffcdc41519a5362b1 (diff)
downloadcmd2-git-c319cd3dfdedf1df6b772855d2936af3c0ab205d.tar.gz
Fix unit tests
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r--tests/test_cmd2.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index d69bf343..20d477ba 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -915,6 +915,8 @@ def say_app():
return app
def test_interrupt_quit(say_app):
+ say_app.quit_on_sigint = True
+
# Mock out the input call so we don't actually wait for a user's response on stdin
m = mock.MagicMock(name='input')
m.side_effect = ['say hello', KeyboardInterrupt(), 'say goodbye', 'eof']