Issue 1194: bin/test: be more conservative with colors http://code.google.com/p/sympy/issues/detail?id=1194
New issue report by ondrej.certik: I suggest we introduce these options: --colors-on --colors-auto --colors-off (the names can be different), where --colors-on/off will enable/disable colors no matter what the terminal says and --colors-auto (default) will check if the terminal support colors and only if we are *sure* it does, use them, otherwise don't. Currently we use this check: + if not sys.stdout.isatty(): + # the stdout is not a terminal, this for example happens if the + # output is piped to less, e.g. "bin/test | less". In this case, + # the terminal control sequences would be printed verbatim, so + # don't use any colors. + color = "" however it seems it is not sufficient, see here: http://buildbot.sympy.org/builders/amd64-py2.5-sympy-tests/builds/38/steps/shell/logs/stdio where it prints stuff like: sympy/concrete/tests/test_gosper.py[2] .. [0;32m[OK] [0m sympy/concrete/tests/test_products.py[3] ... [0;32m[OK] [0m Issue attributes: Status: Accepted Owner: ---- Labels: Type-Defect Priority-Medium -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en -~----------~----~----~----~------~----~------~--~---
