STINNER Victor added the comment: I'm surprised by the test_codecencodings_iso2022 failures. Example:
====================================================================== FAIL: test_incrementaldecoder (test.test_codecencodings_iso2022.Test_ISO2022_KR) ---------------------------------------------------------------------- Traceback (most recent call last): File "E:\GitHub\cpython\lib\test\multibytecodec_support.py", line 208, in test_incrementaldecoder self.assertEqual(ostream.getvalue(), self.tstring[1]) AssertionError: b'\xe[334 chars]\x80\n\xed\x9a\xa8\xec\x9c\xa8\xec\xa0\x81\xec[1668 chars]4.\n' != b'\xe[334 chars]\x80\r\n\xed\x9a\xa8\xec\x9c\xa8\xec\xa0\x81\x[1682 chars]\r\n' It looks like Python uses the wrong encoding to decode stdout of child processes: ====================================================================== ERROR: test_build_ext (distutils.tests.test_build_ext.BuildExtTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "E:\GitHub\cpython\lib\distutils\tests\test_build_ext.py", line 61, in test_build_ext cmd.run() File "E:\GitHub\cpython\lib\distutils\command\build_ext.py", line 338, in run self.build_extensions() File "E:\GitHub\cpython\lib\distutils\command\build_ext.py", line 447, in build_extensions self._build_extensions_serial() File "E:\GitHub\cpython\lib\distutils\command\build_ext.py", line 472, in _build_extensions_serial self.build_extension(ext) File "E:\GitHub\cpython\lib\distutils\command\build_ext.py", line 532, in build_extension depends=ext.depends) File "E:\GitHub\cpython\lib\distutils\_msvccompiler.py", line 306, in compile self.initialize() File "E:\GitHub\cpython\lib\distutils\_msvccompiler.py", line 199, in initialize vc_env = _get_vc_env(plat_spec) File "E:\GitHub\cpython\lib\distutils\_msvccompiler.py", line 92, in _get_vc_env universal_newlines=True, File "E:\GitHub\cpython\lib\subprocess.py", line 636, in check_output **kwargs).stdout File "E:\GitHub\cpython\lib\subprocess.py", line 705, in run stdout, stderr = process.communicate(input, timeout=timeout) File "E:\GitHub\cpython\lib\subprocess.py", line 1062, in communicate stdout = self.stdout.read() File "E:\GitHub\cpython\lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 49: character maps to <undefined> It would help to add a print() to lib\distutils\_msvccompiler.py:92 to get the executed command, then run manually the command, and see non-ASCII characters in the output. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26226> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com