Skip to content

-m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not . #84672

Description

@asottile
mannequin
BPO 40492
Nosy @taleinat, @serhiy-storchaka, @asottile
PRs
  • bpo-40492: Fix --outfile when the program being profiled changes the working directory #19910
  • [3.9] bpo-40492: Fix --outfile with relative path when the program changes it working dir (GH-19910) #22752
  • [3.9] bpo-40492: Fix --outfile with relative path when the program changes it working dir (GH-19910) #22753
  • [3.8] bpo-40492: Fix --outfile with relative path when the program changes it working dir (GH-19910) #22754
  • [3.8] bpo-40492: Fix --outfile with relative path when the program changes it working dir (GH-19910) #22755
  • 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 2020-10-18.21:00:06.199>
    created_at = <Date 2020-05-04.03:36:27.218>
    labels = ['3.8', 'type-bug', 'library', '3.9', '3.10']
    title = '-m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`'
    updated_at = <Date 2020-10-18.21:16:27.048>
    user = 'https://github.com/asottile'

    bugs.python.org fields:

    activity = <Date 2020-10-18.21:16:27.048>
    actor = 'taleinat'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-10-18.21:00:06.199>
    closer = 'taleinat'
    components = ['Library (Lib)']
    creation = <Date 2020-05-04.03:36:27.218>
    creator = 'Anthony Sottile'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 40492
    keywords = ['patch']
    message_count = 9.0
    messages = ['368008', '368018', '368918', '368930', '378851', '378895', '378897', '378900', '378901']
    nosy_count = 3.0
    nosy_names = ['taleinat', 'serhiy.storchaka', 'Anthony Sottile']
    pr_nums = ['19910', '22752', '22753', '22754', '22755']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue40492'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.8 (EOL)end of life3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions