8000 Fix test_cmd_line · python/cpython@036555d · GitHub
[go: up one dir, main page]

Skip to content

Commit 036555d

Browse files
committed
Fix test_cmd_line
1 parent c706cfa commit 036555d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_cmd_line.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,8 @@ def test_python_legacy_windows_fs_encoding(self):
978978
def test_python_legacy_windows_stdio(self):
979979
code = "import sys; print(sys.stdin.encoding, sys.stdout.encoding)"
980980
expected = 'cp'
981-
rc, out, err = assert_python_ok('-c', code, PYTHONLEGACYWINDOWSSTDIO='1')
981+
rc, out, err = assert_python_ok('-Xutf8=0', '-c', code,
982+
PYTHONLEGACYWINDOWSSTDIO='1')
982983
self.assertIn(expected.encode(), out)
983984

984985
@unittest.skipIf("-fsanitize" in sysconfig.get_config_vars().get('PY_CFLAGS', ()),

0 commit comments

Comments
 (0)
0