colorama icon indicating copy to clipboard operation
colorama copied to clipboard

ANSI codes instead of colors when pytest imports colorama through conftest.py

Open grovduck opened this issue 7 years ago • 1 comments

I had reported this as an issue at pytest, but it's probably more likely an issue with colorama. The gist of the issue is that when a user has a custom pytest conftest.py file used which, in turn, imports colorama, the handles dictionary within win32.py does not get reparsed on the second import. I've suggested a possible fix in that ticket, but will defer to your judgment on how best to fix it. Thanks for looking at it.

grovduck avatar Nov 28 '16 19:11 grovduck

This is caused by importing colorama with pytest's fd redirection active. I implemented a workaround for this here https://github.com/pytest-dev/pytest/pull/2611.

segevfiner avatar Aug 04 '17 16:08 segevfiner