Skip to content
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

tox4 missing colour for pytest output #2555

Closed
hugovk opened this issue Nov 28, 2022 · 1 comment
Closed

tox4 missing colour for pytest output #2555

hugovk opened this issue Nov 28, 2022 · 1 comment
Labels
bug:normal affects many people or has quite an impact

Comments

@hugovk
Copy link
Contributor

hugovk commented Nov 28, 2022

When submitting a bug make sure you can reproduce it via tox -rvv and attach the output of that to the bug. Ideally, you should also submit a project that allows easily reproducing the bug. Thanks!

Set up

$ python --version
Python 3.11.0
$ git clone https://github.com/hugovk/tinytext
...
$ cd tinytext

tox3 behaviour

$ pip install -U tox
...
$ tox --version
tox --version
3.27.1 imported from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tox/__init__.py
$ tox -e py311

pytest output is in colour:

image

tox4 behaviour

$ pip install -U tox --pre
...
$ tox --version
4.0.0b3 from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tox/__init__.py
$ tox -e py311

pytest output is no longer in colour:

image

@hugovk hugovk added the bug:normal affects many people or has quite an impact label Nov 28, 2022
@hugovk
Copy link
Contributor Author

hugovk commented Nov 28, 2022

isatty

If I run this inside tox:

{envpython} -c "import sys; print(sys.stdout.isatty())"

I get True for tox3 and False for tox4.

And... this is a duplicate of #1773.

Sorry for the noise!

@hugovk hugovk closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:normal affects many people or has quite an impact
Projects
None yet
Development

No branches or pull requests

1 participant