Skip to content

Conversation

MasterOdin
Copy link
Collaborator

This PR fixes a bug introduced by termcolor 2.1.0, where that library will now detect whether or not the process is running a TTY and disable outputting color if so. This broke using the --color argument to force color when piping to another process (e.g. less), as well as our pytest function for checking rendered output.

The fix is ensuring that we set the environment variable FORCE_COLOR in the cases where we want color, and might not have a TTY (e.g. in the pytest, or when using --color option).

Signed-off-by: Matthew Peveler <[email protected]>
@MasterOdin MasterOdin merged commit b391bca into main Dec 27, 2022
@MasterOdin MasterOdin deleted the fix-color branch December 27, 2022 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant