Skip to content

Refactor temporary file handling in test to use the tmp_path fixture instead. #1167

Open
@Pierre-Sassoulas

Description

@Pierre-Sassoulas

Current behavior

The current tests are using finally, and a lot of code to handle temporary file. Contributor try to follow the coding style and new code could be simplified by using pytest.

Expected behavior

tmp_path is easier to understand and use a lot less code to do the same thing.

See #1161 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    MaintenanceDiscussion or action around maintaining astroid or the dev workflow

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions