-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Early import colorama so that it get's the correct terminal #2611
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
Conversation
Awesome! This fixes #2510. |
Just tested it and it fixes the problem wonderfully. Awesome job! |
Updated the CHANGELOG message to point to #2510 and re-worded it for a more user-oriented description. As soon as CI passes we can merge this. 😁 |
_pytest/capture.py
Outdated
""" | ||
Ensure colorama is imported so that it attaches to the correct stdio | ||
handles on Windows. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The trailing whitespace here breaks the linting
environment 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you GitHub web editor 😝
🎆 |
I just wanted to say thanks again for fixing this - I finally can use pytest with colors on Windows! 🎉 |
I have had it print ANSI escapes without stripping or conversion. With tartley/colorama#131 it captures the wrong default terminal attributes so that the default text color is black (colorama doesn't check for errors).
Importing colorama in a conftest.py should reproduce this.
$issue_id.$type
for example (588.bug)removal
,feature
,bugfix
,vendor
,doc
ortrivial
bugfix
,vendor
,doc
ortrivial
fixes, targetmaster
; for removals or features targetfeatures
;Unless your change is a trivial or a documentation fix (e.g., a typo or reword of a small section) please:
AUTHORS
;