122
122
SmartTCPServer.hooks.install_named_hook(
123
123
'server_exception', hook,
124
124
'test_server_except_hook hook')
125
args = ['--listen', 'localhost', '--port', '0', '--quiet']
126
126
out, err = self.run_bzr_serve_then_func(args, retcode=0)
127
127
self.assertEqual('catching KeyboardInterrupt\n', err)