def munge_nose_output_for_doctest(out):
 out = remove_stack_traces(out)
 out = simplify_warnings(out)
 out = remove_timings(out)
 return out.strip()

def munge_nose_output_for_doctest ( out ) : out = remove_stack_traces ( out ) out = simplify_warnings ( out ) out = remove_timings ( out ) return out . strip ( )
modify nose output to make it easy to use in doctests .