Skip to content

Make the cwd argument to subprocess.Popen accept a PathLike #72810

Closed

Description

@cool-RR
mannequin
BPO 28624
Nosy @ncoghlan, @cool-RR, @berkerpeksag, @sayanchowdhury, @zhangyangyu
PRs
  • bpo-28624: Add test for subprocess to check that cmd arg supports PathLike #157
  • [3.6] bpo-28624: Add a test that checks that cwd parameter of Popen() accepts PathLike objects (#157) #323
  • fix subprocess on Windows (GH-391 backport) #623
  • [Do Not Merge] Sample of CPython life with blurb. #703
  • [Do Not Merge] Convert Misc/NEWS so that it is managed by towncrier #552
  • 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 2017-02-26.17:39:04.320>
    created_at = <Date 2016-11-06.12:45:19.390>
    labels = ['3.7', 'type-feature', 'library']
    title = 'Make the `cwd` argument to `subprocess.Popen` accept a `PathLike`'
    updated_at = <Date 2017-03-31.16:36:08.862>
    user = 'https://github.com/cool-RR'

    bugs.python.org fields:

    activity = <Date 2017-03-31.16:36:08.862>
    actor = 'dstufft'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-02-26.17:39:04.320>
    closer = 'berker.peksag'
    components = ['Library (Lib)']
    creation = <Date 2016-11-06.12:45:19.390>
    creator = 'cool-RR'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 28624
    keywords = []
    message_count = 4.0
    messages = ['288074', '288605', '290377', '290378']
    nosy_count = 5.0
    nosy_names = ['ncoghlan', 'cool-RR', 'berker.peksag', 'sayanchowdhury', 'xiang.zhang']
    pr_nums = ['157', '323', '623', '703', '552']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue28624'
    versions = ['Python 3.6', 'Python 3.7']

    Activity

    1. added
      stdlibStandard Library Python modules in the Lib/ directory
      type-featureA feature request or enhancement
      on Nov 6, 2016
    2. sayanchowdhury commented on Feb 18, 2017

      sayanchowdhurymannequin
      Mannequin

      I tested and found that the code already works with PathLike. I have created a PR which updates the test and documentation. I think the issue can be in Windows.

    3. added
      testsTests in the Lib/test dir
      and removed
      stdlibStandard Library Python modules in the Lib/ directory
      on Feb 18, 2017
    4. added
      stdlibStandard Library Python modules in the Lib/ directory
      and removed
      testsTests in the Lib/test dir
      on Feb 18, 2017
    5. berkerpeksag commented on Feb 26, 2017

      @berkerpeksag
      Member

      Thanks for the patch, Sayan!

    6. berkerpeksag commented on Mar 24, 2017

      @berkerpeksag
      Member

      New changeset 6b81003 by Berker Peksag in branch '3.6':
      bpo-28624: Add a test that checks that cwd parameter of Popen() accepts PathLike objects (#157) (#323)
      6b81003

    7. berkerpeksag commented on Mar 24, 2017

      @berkerpeksag
      Member

      New changeset d5c11f7 by Berker Peksag (Sayan Chowdhury) in branch 'master':
      bpo-28624: Add a test that checks that cwd parameter of Popen() accepts PathLike objects (#157)
      d5c11f7

    8. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions