summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell Bryant <rbryant@redhat.com>2012-06-06 21:26:02 -0400
committerRussell Bryant <rbryant@redhat.com>2012-06-06 21:26:02 -0400
commitad045864508855361c1ada70c2ef6b8aab0ef2b4 (patch)
treeaed45c6766c728845ec65cd8c5d32cf6d2695f39
parent7b7febb02b37420c759eab59b07c7e3e2de9bab1 (diff)
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
-rw-r--r--nova/tests/rpc/test_zmq.py2
1 files changed, 1 insertions, 1 deletions
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: