Skip to content

chdir __exit__ is not safe #89708

Open
Open
@ucodery

Description

@ucodery
mannequin
BPO 45545
Nosy @warsaw, @eryksun, @FFY00, @ucodery
PRs
  • bpo-45545: chdir __exit__ is not safe #29218
  • bpo-45545: premptively fail on contextlib.chdir if we can't chdir back #29220
  • Files
  • test_chdir.py: minimal test script
  • 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 = None
    created_at = <Date 2021-10-20.22:54:45.172>
    labels = ['type-bug', '3.11']
    title = 'chdir __exit__ is not safe'
    updated_at = <Date 2021-10-26.17:30:32.350>
    user = 'https://github.com/ucodery'

    bugs.python.org fields:

    activity = <Date 2021-10-26.17:30:32.350>
    actor = 'ucodery'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = []
    creation = <Date 2021-10-20.22:54:45.172>
    creator = 'ucodery'
    dependencies = []
    files = ['50377']
    hgrepos = []
    issue_num = 45545
    keywords = ['patch']
    message_count = 14.0
    messages = ['404534', '404550', '404552', '404557', '404568', '404613', '404718', '405011', '405012', '405019', '405021', '405022', '405025', '405052']
    nosy_count = 4.0
    nosy_names = ['barry', 'eryksun', 'FFY00', 'ucodery']
    pr_nums = ['29218', '29220']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue45545'
    versions = ['Python 3.11']

    Linked PRs

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixesstdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions