server tests : do not catch e.g. SystemExit; use print_exc
This commit is contained in:
parent
70d675580f
commit
731134958f
1 changed files with 3 additions and 6 deletions
|
@ -45,12 +45,9 @@ def after_scenario(context, scenario):
|
||||||
|
|
||||||
while is_server_listening(context.server_fqdn, context.server_port):
|
while is_server_listening(context.server_fqdn, context.server_port):
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
except:
|
except Exception:
|
||||||
exc = sys.exception()
|
print("ignoring error in after_scenario:")
|
||||||
print("error in after scenario:")
|
traceback.print_exc(file=sys.stdout)
|
||||||
print(exc)
|
|
||||||
print("*** print_tb:")
|
|
||||||
traceback.print_tb(exc.__traceback__, file=sys.stdout)
|
|
||||||
|
|
||||||
|
|
||||||
def server_graceful_shutdown(context):
|
def server_graceful_shutdown(context):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue