new watch_tasks code should re-raise KeyboardInterrupt
This commit is contained in:
parent
8e34abb5ac
commit
1cc415f141
1 changed files with 1 additions and 3 deletions
|
|
@ -214,10 +214,8 @@ class TestWatchTasks(unittest.TestCase):
|
|||
|
||||
twClzMock.side_effect = side_effect
|
||||
|
||||
try:
|
||||
with self.assertRaises(KeyboardInterrupt):
|
||||
cli.watch_tasks(self.session, range(2), quiet=False)
|
||||
except KeyboardInterrupt:
|
||||
self.fail('KeyboardInterrupt was uncaught')
|
||||
|
||||
actual = stdout.getvalue()
|
||||
self.assertMultiLineEqual(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue