Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

subprocess: stdout set to subprocess.STDOUT is incorrectly handled #98966

Closed
Labels
stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error
@ptsneves

Description

@ptsneves

Bug report

importsubprocesssubprocess.run('true',stdout=subprocess.STDOUT,cwd='./')

Expected output:

  • Some kind of error stating that the stdout argument cannot take a subprocess.STDOUT. That subprocess.STDOUT is only valid for stderr

Actual output:

OSError: [Errno 9] Bad file descriptor: './'

I reproduce this with the latest Python main branch as well as Python 3.10 but I see no indication this issue was ever addressed

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard 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


      [8]ページ先頭

      ©2009-2025 Movatter.jp