'Test invoking start_new_thread() with a function that raises exception.
The exception should be discarded and the traceback should be printed
via traceback.print_exc()'

@mock.patch('traceback.print_exc')
def test_RaiseException(self, mock_print_exc):

    func = mock.Mock(side_effect=Exception)
    _thread.start_new_thread(func, tuple())
    self.assertTrue(mock_print_exc.called)
