mirror of https://github.com/zulip/zulip.git
fall back to debugger if one of the test modules has an importerror
(imported from commit 856415f91dee53c72511e68f710a952fbe1a5f2e)
This commit is contained in:
parent
466a678c2c
commit
c545a42a67
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue