Skip to content

Commit 63105a2

Browse files
aiskzooba
andauthored
Update Lib/test/test_cmd_line.py
Co-authored-by: Steve Dower <[email protected]>
1 parent e3f1019 commit 63105a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_cmd_line.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -975,6 +975,7 @@ def test_python_legacy_windows_stdio(self):
975975
code = "import sys; print(sys.stdin.encoding, sys.stdout.encoding, file=sys.stderr)"
976976
env = os.environ.copy()
977977
env['PYTHONLEGACYWINDOWSSTDIO'] = '1'
978+
# Use Popen directly to ensure stdin/out are console handles
978979
p = subprocess.Popen([sys.executable, '-c', code],
979980
stderr=subprocess.PIPE, env=env)
980981
out = p.stderr.read()

0 commit comments

Comments
 (0)