We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63105a2 commit 8ee7294Copy full SHA for 8ee7294
Lib/test/test_cmd_line.py
@@ -2,6 +2,7 @@
2
# Most tests are executed with environment variables ignored
3
# See test_cmd_line_script.py for testing of script execution
4
5
+import io
6
import os
7
import subprocess
8
import sys
@@ -971,6 +972,8 @@ def test_python_legacy_windows_fs_encoding(self):
971
972
self.assertIn(expected.encode(), out)
973
974
@unittest.skipUnless(support.MS_WINDOWS, 'Test only applicable on Windows')
975
+ @unittest.skipUnless(type(sys.stdin.buffer.raw) == io._WindowsConsoleIO,
976
+ 'Requires real console handles')
977
def test_python_legacy_windows_stdio(self):
978
code = "import sys; print(sys.stdin.encoding, sys.stdout.encoding, file=sys.stderr)"
979
env = os.environ.copy()
0 commit comments