Closed kliem closed 2 years ago
rundoctests
try: failures, _ = doctest.testfile(file, module_relative=False, optionflags=flags, parser=parser) if not failures: os._exit(0) except BaseExcept as E: print(E) finally: os._exit(23)
However, the exceptions thrown by sig_on are not of type BaseExcept. We use logging.exception instead.
sig_on
BaseExcept
logging.exception
155 is difficult to figure out. The reason is simple. The exceptions in
rundoctests
are caught and printed withHowever, the exceptions thrown by
sig_on
are not of typeBaseExcept
. We uselogging.exception
instead.