FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

subprocess: stdout set to subprocess.STDOUT is incorrectly handled · Issue #98966 · python/cpython · GitHub

Repository navigation

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

Closed

Description

Bug report

import subprocess
subprocess.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

Activity

  1. added 2 commits that reference this issue on Nov 1, 2022
  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    on Nov 25, 2023
  3. added a commit that references this issue on Mar 26, 2024
  4. added a commit that references this issue on Apr 17, 2024
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

    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


      Back | FazBrowse Home | New Git URL