Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_posix getcwd test leaves tmp dir #51223

Closed
iandekit mannequin opened this issue Sep 23, 2009 · 2 comments
Closed

test_posix getcwd test leaves tmp dir #51223

iandekit mannequin opened this issue Sep 23, 2009 · 2 comments
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@iandekit
Copy link
Mannequin

iandekit mannequin commented Sep 23, 2009

BPO 6974
Nosy @bitdancer
Files
  • EKIT.PATCH4: rmtree fix for test_posix
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2009-12-01.19:20:07.759>
    created_at = <Date 2009-09-23.05:47:05.942>
    labels = ['type-bug', 'tests']
    title = 'test_posix getcwd test leaves tmp  dir'
    updated_at = <Date 2009-12-01.19:20:07.749>
    user = 'https://bugs.python.org/iandekit'

    bugs.python.org fields:

    activity = <Date 2009-12-01.19:20:07.749>
    actor = 'r.david.murray'
    assignee = 'none'
    closed = True
    closed_date = <Date 2009-12-01.19:20:07.759>
    closer = 'r.david.murray'
    components = ['Tests']
    creation = <Date 2009-09-23.05:47:05.942>
    creator = 'iandekit'
    dependencies = []
    files = ['14954']
    hgrepos = []
    issue_num = 6974
    keywords = []
    message_count = 2.0
    messages = ['93026', '95869']
    nosy_count = 2.0
    nosy_names = ['r.david.murray', 'iandekit']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue6974'
    versions = ['Python 2.6']

    @iandekit
    Copy link
    Mannequin Author

    iandekit mannequin commented Sep 23, 2009

    whilst debugging the getcwd test on Solaris 9 I noticed that
    the rmtree() failed, as on Solaris rmdir(2) returns EINVAL
    if cwd is the named directory.

    Fix is to reorder the rmtree and chdir, see attached patch.

    @iandekit iandekit mannequin added tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Sep 23, 2009
    @bitdancer
    Copy link
    Member

    This was fixed in response to another bug report a few months ago.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant