GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — subprocess: stdout set to subprocess.STDOUT is incorrectly handled · Issue #98966 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
Closed
subprocess: stdout set to subprocess.STDOUT is incorrectly handled#98966
Copy link
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@ptsneves
ptsneves
opened on Nov 1, 2022
Issue body actions

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

  • PR: gh-98966: Handle stdout=subprocess.STDOUT #98967

Activity

  1. ptsneves
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Nov 1, 2022
  2. ptsneves
    added 2 commits that reference this issue on Nov 1, 2022

    pythongh-98966: Handle stdout=subprocess.STDOUT

    b7d2917

    pythongh-98966: Handle stdout=subprocess.STDOUT

    1d85c2f
  3. iritkatriel
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Nov 25, 2023
  4. encukou
    added a commit that references this issue on Mar 26, 2024

    gh-98966: Handle stdout=subprocess.STDOUT (GH-98967)

    4abca7e
  5. encukou
    closed this as completedon Mar 26, 2024
  6. NGRsoftlab
    added 2 commits that reference this issue on Apr 2, 2024

    Squashed commit of the following:

    1b5fe4c

    Squashed commit of the following:

    a016a54
  7. diegorusso
    added a commit that references this issue on Apr 17, 2024

    pythongh-98966: Handle stdout=subprocess.STDOUT (pythonGH-98967)

    7f6ae1e
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/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.