Skip to content

TestFileEnvironment.clear fails on Windows #6

Description

@guruofgentoo

With scripttest 1.3, Python 2.7.8 win32.

When the test directory already exists, TestFileEnvironment.clear fails, with "WindowsError: [Error 5] Access is denied:" on the mkdir. It appears that Windows holds a lock on the path for a short time after rmtree returns. Adding time.sleep(0.001) after rmtree fixed the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions