color: fix TypeError with auto mode on win32 when colors aren't available (issue2871)
This can happen when stdout isn't a terminal (e.g., it's being piped).
....................----------------------------------------------------------------------Ran 20 tests in 0.000sOK