aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: