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

[BUG] 15.0.1 breaks click.testing.CliRunner run from pytest with pytest-xdist #105

Open
ITProKyle opened this issue Jun 11, 2021 · 2 comments

Comments

@ITProKyle
Copy link

My application updated from 15.0.0 to 15.0.1 via a dependabot PR earlier today. This resulted in click.testing.CliRunner raising ValueError: I/O operation on closed file. (logs) in our tests. I would assume the closed file it is referring to is sys.stderr.

Reverting back to 15.0.0 results in the tests passing (onicagroup/runway#667).

@ITProKyle
Copy link
Author

This looks to have been resolved somewhere along the line. Tested with coloredlogs==15.0.1 & click==8.1.3.

@ITProKyle
Copy link
Author

Actually, i was wrong. I was checking without the --log-cli-format & --log-cli-level flags for pytest locally but upon pushing my most recent changes the error was present as the CI/CD pipeline passes those flags.

@ITProKyle ITProKyle reopened this Jan 3, 2023
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

No branches or pull requests

1 participant