Fix trace_tests.py when showing output. (r=jorendorff)