Skip to content

race condition between creation of .pytest_cache and .pytest_cache/.gitignore #12167

Closed
@tamird

Description

@tamird

The solution implemented in #3982 is not robust - in case test execution is interrupted while a cache element is being written, the .pytest_cache directory will exist and be non-empty, but will not contain .gitignore.

Because of this check .gitignore ends up never being created.

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