From ad045864508855361c1ada70c2ef6b8aab0ef2b4 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 6 Jun 2012 21:26:02 -0400 Subject: Use OSError instead of ProcessExecutionError. This patch updates the ZeroMQ test module to use OSError in one place instead of ProcessExecutionError from nova.exception. In a previous rev of this code, it was using nova.utils.execute(), but no longer does. Change-Id: I3dac2981b5c1a7cd5fc0e4e8dbf0a2d378a1d136 --- nova/tests/rpc/test_zmq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/tests/rpc/test_zmq.py b/nova/tests/rpc/test_zmq.py index 27ae4e6fb..aa7032850 100644 --- a/nova/tests/rpc/test_zmq.py +++ b/nova/tests/rpc/test_zmq.py @@ -88,7 +88,7 @@ class _RpcZmqBaseTestCase(common.BaseRpcTestCase): except zmq.ZMQError: assert False, _("Could not create ZeroMQ receiver daemon. " "Socket may already be in use.") - except exception.ProcessExecutionError: + except OSError: assert False, _("Could not create IPC directory %s") % \ (ipc_dir, ) finally: -- cgit