-
-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Colorized output is not disabled when output is redirected #266
Labels
Comments
TIL, neat! # main.py
import sys
def main():
print(f"STDIN : {sys.stdin.isatty()}")
print(f"STDOUT: {sys.stdout.isatty()}")
if __name__ == "__main__":
main() yields
|
Why does nox care if STDIN is a TTY? |
Probably just a mistake on my part. We should change it to stdout.
…On Tue, Dec 3, 2019 at 10:42 AM Dov Shlachter ***@***.***> wrote:
Why does nox care if STDIN is a TTY?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#266>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB5I427PPGC3AYZRXF2HCLQW2SAFANCNFSM4JUO6G5Q>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Redirecting nox output does not correctly determine that stdout is not a tty and adds color control codes to the output.
How to reproduce
Given a noxfile that defines some targets, e.g. unit tests, run
cd path/to/repo && python -m nox -s &> output-log.txt
Expected behavior
The contents of
output-log.txt
should be plain ASCII (or UTF-8) and not contain cursor control codes.The text was updated successfully, but these errors were encountered: