summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Carrez <thierry@openstack.org>2012-02-02 17:26:30 +0100
committerThierry Carrez <thierry@openstack.org>2012-02-02 17:29:05 +0100
commit94ac2c4747ae5e87db32a5ed4de82b0a0a1f5f0f (patch)
tree7d6f1824a58f8571f772abee2154206b07fe0057
parent3298d23d03de46966e5584688d689576b974b35d (diff)
Avoid weird test error when mox is missing
Fail early if you can't import mox, rather than return a cryptic and undecipherable error. Fixes bug 810424. Change-Id: Ie56d3e7447bbba841fdc882cb1f8f70e234812ef
-rw-r--r--nova/tests/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/tests/__init__.py b/nova/tests/__init__.py
index 676518a48..02bc77898 100644
--- a/nova/tests/__init__.py
+++ b/nova/tests/__init__.py
@@ -37,6 +37,7 @@ setattr(__builtin__, '_', lambda x: x)
def setup():
+ import mox # Fail fast if you don't have mox. Workaround for bug 810424
import os
import shutil