diff options
author | W. Trevor King <wking@drexel.edu> | 2009-12-31 12:36:29 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-12-31 12:36:29 -0500 |
commit | 80e76f70d58672167b17ddaced6c7856ba703ece (patch) | |
tree | b1f49693336a63125ae4ce1052715eda489d3a15 | |
parent | 0d31c5a14719ed8f18b1554b3975690aea81c719 (diff) | |
download | bugseverywhere-80e76f70d58672167b17ddaced6c7856ba703ece.tar.gz |
Better import error messages in test.py
-rw-r--r-- | test.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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: |