Skip to content

Pytest cannot delete tmp_path directories without stat.S_IXUSR mode bit set #7940

Open
@graingert

Description

@graingert

Pytest cannot delete tmp_path directories without stat.S_IXUSR mode bit set

        def test(tmp_path):
            p = tmp_path / "foo" / "bar" / "baz"
            p.parent.mkdir(parents=True)
            p.touch(mode=0)
            for p in p.parents:
                if p == tmp_path:
                    break
                p.chmod(mode=0)

I'm currently working on a fix for it

see also #7933

Metadata

Metadata

Assignees

No one assigned

    Labels

    plugin: tmpdirrelated to the tmpdir builtin plugintype: refactoringinternal improvements to the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions