aboutsummaryrefslogtreecommitdiffstats
path: root/test.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-31 12:36:29 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-31 12:36:29 -0500
commit80e76f70d58672167b17ddaced6c7856ba703ece (patch)
treeb1f49693336a63125ae4ce1052715eda489d3a15 /test.py
parent0d31c5a14719ed8f18b1554b3975690aea81c719 (diff)
downloadbugseverywhere-80e76f70d58672167b17ddaced6c7856ba703ece.tar.gz
Better import error messages in test.py
Diffstat (limited to 'test.py')
-rw-r--r--test.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test.py b/test.py
index 29dece6..f26aaa8 100644
--- a/test.py
+++ b/test.py
@@ -52,7 +52,11 @@ def python_tree(root_path='libbe', root_modname='libbe'):
return tree
def add_module_tests(suite, modname):
- mod = import_by_name(modname)
+ try:
+ mod = import_by_name(modname)
+ except ValueError, e:
+ print >> sys.stderr, 'Failed to import "%s"' % (modname)
+ raise e
if hasattr(mod, 'suite'):
s = mod.suite
else: