-
-
Notifications
You must be signed in to change notification settings - Fork 257
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
Don't break due to our handles getting closed by FD redirection #131
Don't break due to our handles getting closed by FD redirection #131
Conversation
The fix is to simply not cache the std handles returned by `GetStdHandle` This happens in Pytest on at least Python 3.5 and 3.6. Please check pytest-dev/pytest#2465 for more information about this.
This could be related to #114 and maybe #104 (comment) is also slightly related |
Arghhhh, I started seeing this on Python 2.7 too. Who knows what changed that it's now triggered there too. Be it Pytest version, Windows version, or what not... This PR seems to fix it for that instance too, anyhow. I still find the fact that this is random completely baffling... 😕 |
I would love to see this one fixed as well, ran into it when using pytest. |
I second that. @wiggin15 anything missing here? Anything else we can help with to get this merged and a new PyPI release? |
Great, thanks a lot @wiggin15! |
Just to make sure - is the problem in pytest related to stream redirection? |
Yes. It is caused by FD redirection ( |
Thanks. There's a new release, 0.4.0, with this change. |
Awesome, thanks @wiggin15 for the prompt merge and release! 🙇 |
The fix is to simply not cache the std handles returned by
GetStdHandle
This happens in Pytest on at least Python 3.5 and 3.6.
Please check pytest-dev/pytest#2465 for more information about this before merging.