Skip to content

Test failure: __stdout__.encoding != __stderr__.encoding #98474

Open
@WickWeiWkSpace

Description

@WickWeiWkSpace

Hi All,

Python3 failed to run test_sys on release and debug configuration with MSVC on windows. it can be reproduced on 9331087 on master branch. Could you please help look at this issue?

Environment:
VS 2019 + Windows Server 2019

Repro steps:

  1. git clone https://github.com/python/cpython F:\gitP\python\cpython
  2. cd F:\gitP\python\cpython\PCBuild
  3. get_externals.bat --clean-only 2>&1
  4. echo f | xcopy F:\Agent_work\5\s\src\tools\nuget\nuget.exe F:\gitP\python\cpython\externals\nuget.exe /k/r/e/i/s/c/h/f/y
  5. build -d -e -r --no-tkinter -v "/p:PlatformToolset=v142" "/p:WindowsTargetPlatformVersion=10.0.18362.0" 2>&1
  6. rt -d -q -x test_asyncio test_distutils test_importlib test_peg_generator test_tools test_socket test_compileall 2>&1

Error info:
debug_test.log

== Tests result: FAILURE ==

384 tests OK.

1 test failed:
test_sys

44 tests skipped:
test_curses test_dbm_gnu test_dbm_ndbm test_devpoll test_epoll
test_fcntl test_fork1 test_gdb test_grp test_idle test_ioctl
test_kqueue test_multiprocessing_fork
test_multiprocessing_forkserver test_nis test_openpty
test_ossaudiodev test_pipes test_poll test_posix test_pty test_pwd
test_readline test_resource test_smtpnet test_socketserver
test_spwd test_syslog test_tcl test_threadsignals test_tix test_tk
test_ttk_guionly test_ttk_textonly test_turtle test_urllib2net
test_urllibnet test_wait3 test_wait4 test_winsound test_xmlrpc_net
test_xxlimited test_xxtestfuzz test_zipfile64

Total duration: 33 min 10 sec
Tests result: FAILURE

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowstype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions