don't abort all unit tests if KeyboardInterrupt is uncaught by code
This commit is contained in:
parent
df1996d79e
commit
8e34abb5ac
1 changed files with 4 additions and 1 deletions
|
|
@ -214,7 +214,10 @@ class TestWatchTasks(unittest.TestCase):
|
|||
|
||||
twClzMock.side_effect = side_effect
|
||||
|
||||
cli.watch_tasks(self.session, range(2), quiet=False)
|
||||
try:
|
||||
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