Pytest processes all the output, so the terminal colors are no longer interpreted. Remove the obsolete code.