In
there is a
return statement in a
finally block, which would swallow any in-flight exception.
This means that if a BaseException (such as KeyboardInterrupt) is raised from the try body, or any exception is raised from an except: clause, it will not propagate on as expected.
See also https://docs.python.org/3/tutorial/errors.html#defining-clean-up-actions.
In
HtmlTestRunner/HtmlTestRunner/result.py
Line 32 in 8529dc3
returnstatement in afinallyblock, which would swallow any in-flight exception.This means that if a
BaseException(such asKeyboardInterrupt) is raised from thetrybody, or any exception is raised from anexcept: clause, it will not propagate on as expected.See also https://docs.python.org/3/tutorial/errors.html#defining-clean-up-actions.