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

fix for ValueError raised in faulthandler teardown code #11453

Conversation

bnomis
Copy link
Contributor

@bnomis bnomis commented Sep 19, 2023

Closes #11439

Fix is to add ValueError to the caught exceptions in get_stderr_fileno().

The io.UnsupportedOperation exception inherits from ValueError so this has been removed.

@nicoddemus
Copy link
Member

nicoddemus commented Sep 19, 2023

Thanks @bnomis, we appreciate the contribution!

Took the liberty of improving the changelog a bit. 👍

@nicoddemus nicoddemus merged commit a38ad25 into pytest-dev:main Sep 20, 2023
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ValueError: I/O operation on closed file
2 participants