Don't colorize failed tests unless printing to a TTY

I missed this in 1c7ffac828fb0e5a5f4280e0d45b2c6f6ff94106.