fall back to debugger if one of the test modules has an importerror

(imported from commit 856415f91dee53c72511e68f710a952fbe1a5f2e)
This commit is contained in:
acrefoot 2015-07-30 05:41:07 -03:00
parent 466a678c2c
commit c545a42a67
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ def run_test(test):
bounce_key_prefix_for_testing(test_name)
print 'Running', test_name
if not hasattr(test, "_pre_setup"):
print "somehow the test doesn't have _pre_setup; it may be an import fail."
print "Here's a debugger. Good luck!"
import pdb; pdb.set_trace()
test._pre_setup()
start_time = time.time()