Skip to content

Click 8.2.0 introduced ValueError in testing environment #311

@JiriPavela

Description

@JiriPavela

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions