When used in library mode, ERROR_REPORT is a magic mock object to let setup executing properly, without installing an except hook