Skip to content

Color support on Windows: TerminalWriter (PY_COLORS), colorama (PYCHARM_HOSTED) #1468

@eine

Description

@eine

While running several tests with tox on GitHub Actions environments, tox's output is not coloured by default (see actions/starter-workflows#114). Setting PY_COLORS: 1 (#1009) works for jobs running on GNU/Linux (ubuntu-latest). Unfortunately, it seems not to be effective on windows-latest.

Note that, in those examples, the output of the commands executed by tox is coloured because --color=yes is explicitly passed to pytest through {posargs}.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:newsomething does not exist yet, but shouldhelp:wantedIssues that have been acknowledged, a solution determined and a PR might likely be accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions