A recent release of a new Click version introduced the infamous ValueError: I/O operation on closed file. error in our testing environment when using click.CliRunner(). This seems to be an open issue in Click (pallets/click#824) which will, however, likely require some investigation on our part to figure out what logging can we safely disable or reconfigure to not break any tests that rely on logging.
Currently, we have a hotfix in place that restricts Click version to < 8.2.0. To reproduce the issue, upgrade Click to 8.2.0 manually and run test_cli.
A recent release of a new Click version introduced the infamous
ValueError: I/O operation on closed file.error in our testing environment when usingclick.CliRunner(). This seems to be an open issue in Click (pallets/click#824) which will, however, likely require some investigation on our part to figure out what logging can we safely disable or reconfigure to not break any tests that rely on logging.Currently, we have a hotfix in place that restricts Click version to
< 8.2.0. To reproduce the issue, upgrade Click to 8.2.0 manually and runtest_cli.