Fix some unexpected tracebacks while running tox tests

When run in fake more, the task manager isn't properly handling
exceptions that can be thrown, and since negative tests can cause
exceptions to be thrown, we get annoying tox tests.

This fix cleans up the output of tox tests and let's you see what's
really going on.

Change-Id: I372d5e299deddc868ef5bfba81c7eeeda9f44b72
Closes-Bug: 1378083
Author: Robert Myers <robert.myers@RACKSPACE.COM>
Co-Authored-By: Amrith Kumar <amrith@tesora.com>
This commit is contained in:
Amrith Kumar
2016-03-22 21:17:30 -04:00
parent d31572a4f6
commit 2502335ccc
+4 -1
View File
@@ -38,7 +38,10 @@ class FakeRpcClient(object):
manager, method = self._get_tm_method(method_name)
def func():
method(manager, context, *args, **kwargs)
try:
method(manager, context, *args, **kwargs)
except Exception:
LOG.exception("Error running %s", method)
eventlet.spawn_after(0.1, func)