def no_tracing(func):
if not hasattr(sys, '<STR_LIT>'):<EOL><INDENT>return func<EOL><DEDENT>else:<EOL><INDENT>@functools.wraps(func)<EOL>def wrapper(*args, **kwargs):<EOL><INDENT>original_trace = sys.gettrace()<EOL>try:<EOL><INDENT>sys.settrace(None)<EOL>return func(*args, **kwargs)<EOL><DEDENT>finally:<EOL><INDENT>sys.settrace(original_trace)<EOL><DEDENT><DEDENT>return wrapper<EOL><DEDENT>
Decorator to temporarily turn off tracing for the duration of a test.