def _instantiate_all(): ret = [] for cls, args in mod.__rfm_test_registry: try: if cls in mod.__rfm_skip_tests: continue except AttributeError: mod.__rfm_skip_tests = set() try: ret.append(_instantiate(cls, args)) except SkipTestError as e: getlogger().warning(f'skipping test {cls.__name__!r}: {e}') except Exception: frame = user_frame(*sys.exc_info()) filename = frame.filename if frame else 'n/a' lineno = frame.lineno if frame else 'n/a' getlogger().warning( f"skipping test {cls.__name__!r} due to errors: " f"use `-v' for more information\n" f" FILE: {filename}:{lineno}") getlogger().verbose(traceback.format_exc()) return ret
def _instantiate_all(): ret = [] for cls, args in mod.__rfm_test_registry: try: if cls in mod.__rfm_skip_tests: continue except AttributeError: mod.__rfm_skip_tests = set() try: ret.append(_instantiate(cls, args)) except Exception as e: frame = user_frame(sys.exc_info()[2]) msg = "skipping test due to errors: %s: " % cls.__name__ msg += "use `-v' for more information\n" msg += " FILE: %s:%s" % (frame.filename, frame.lineno) getlogger().warning(msg) getlogger().verbose(traceback.format_exc()) return ret