There is however a problem with the unittest. It does output colors even if stdout isn't a tty, so the test still fails.