-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Fix faulthandler for Twisted Logger when used with "--capture=no" #8250
Conversation
5e52b35
to
849fa40
Compare
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.
Nice description and fix! LGTM, just a couple of comments.
The Twisted Logger will return an invalid file descriptor since it is not backed by an FD. So, let's also forward this to the same code path as with `pytest-xdist`.
849fa40
to
9ba1821
Compare
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.
Thanks @amotl!
Backport: #8259 |
Thank you for accepting this small improvement. I wish much success and kudos to all of you for the future development of |
Hi again,
this patch resolves #8249.
The background on this is that the Twisted Logger will return an invalid file descriptor since it is not backed by an FD. It will make
pytest
croak and hang when invoked throughpytest --capture=no
on teardown.The solution is to also forward this to the same code path as with
pytest-xdist
, where the code already has special handling for.Hereby, I humbly ask for further guidance in order to bring in this patch. Please let me know
With kind regards,
Andreas.