-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
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
Metadata
Metadata
Assignees
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Activity
pythongh-98966: Handle stdout=subprocess.STDOUT
pythongh-98966: Handle stdout=subprocess.STDOUT
gh-98966: Handle stdout=subprocess.STDOUT (GH-98967)
Squashed commit of the following:
Squashed commit of the following:
pythongh-98966: Handle stdout=subprocess.STDOUT (pythonGH-98967)