Title: Several Tests fail in `test_regrtest.py` · Issue #109508 · python/cpython · GitHub
Open Graph Title: Several Tests fail in `test_regrtest.py` · Issue #109508 · python/cpython
X Title: Several Tests fail in `test_regrtest.py` · Issue #109508 · python/cpython
Description: Bug report Bug description: When I ran .\PCbuild\amd64\python.exe -m test -v test_regrtest in Powershell on Windows 10, it showed that this test case failed with 8 failures. All cases were releted to the subprocess with the wrong encodin...
Open Graph Description: Bug report Bug description: When I ran .\PCbuild\amd64\python.exe -m test -v test_regrtest in Powershell on Windows 10, it showed that this test case failed with 8 failures. All cases were releted ...
X Description: Bug report Bug description: When I ran .\PCbuild\amd64\python.exe -m test -v test_regrtest in Powershell on Windows 10, it showed that this test case failed with 8 failures. All cases were releted ...
Opengraph URL: https://github.com/python/cpython/issues/109508
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Several Tests fail in `test_regrtest.py`","articleBody":"# Bug report\r\n\r\n### Bug description:\r\n\r\nWhen I ran `.\\PCbuild\\amd64\\python.exe -m test -v test_regrtest` in Powershell on Windows 10, it showed that this test case failed with 8 failures. All cases were releted to the subprocess with the wrong encodings. Here is the output of the test case:\r\n\r\n```pytb\r\n== CPython 3.13.0a0 (heads/main:e57ecf6bbc, Sep 17 2023, 15:01:40) [MSC v.1935 64 bit (AMD64)]\r\n== Windows-10-10.0.19045-SP0 little-endian\r\n== Python build: release with_assert\r\n== cwd: C:\\Users\\luoga\\Desktop\\cpython\\build\\test_python_worker_8364æ\r\n== CPU count: 12\r\n== encodings: locale=cp936, FS=utf-8\r\n0:00:00 Run 1 test sequentially\r\n0:00:00 [1/1] test_regrtest\r\ntest_cleanup (test.test_regrtest.ArgsTestCase.test_cleanup) ... ok\r\ntest_coverage (test.test_regrtest.ArgsTestCase.test_coverage) ... ok\r\ntest_crashed (test.test_regrtest.ArgsTestCase.test_crashed) ... ok\r\ntest_doctest (test.test_regrtest.ArgsTestCase.test_doctest) ... FAIL\r\n(Successful tests skipped...)\r\ntest_ignorefile (test.test_regrtest.ArgsTestCase.test_ignorefile) ... FAIL\r\ntest_interrupted (test.test_regrtest.ArgsTestCase.test_interrupted) ... ok\r\ntest_leak_tmp_file (test.test_regrtest.ArgsTestCase.test_leak_tmp_file) ... FAIL\r\ntest_list_cases (test.test_regrtest.ArgsTestCase.test_list_cases) ... ok\r\ntest_list_tests (test.test_regrtest.ArgsTestCase.test_list_tests) ... ok\r\ntest_matchfile (test.test_regrtest.ArgsTestCase.test_matchfile) ... FAIL\r\n(Successful tests skipped...)\r\ntest_print_warning (test.test_regrtest.ArgsTestCase.test_print_warning) (option='-v') ... FAIL\r\n(Successful tests skipped...)\r\ntest_threading_excepthook (test.test_regrtest.ArgsTestCase.test_threading_excepthook) ... FAIL\r\ntest_uncollectable (test.test_regrtest.ArgsTestCase.test_uncollectable) ... ok\r\ntest_unicode_guard_env (test.test_regrtest.ArgsTestCase.test_unicode_guard_env) ... ok\r\ntest_unraisable_exc (test.test_regrtest.ArgsTestCase.test_unraisable_exc) ... FAIL\r\ntest_wait (test.test_regrtest.ArgsTestCase.test_wait) ... ok\r\ntest_worker_decode_error (test.test_regrtest.ArgsTestCase.test_worker_decode_error) ... FAIL\r\n(Successful tests skipped...)\r\n======================================================================\r\nFAIL: test_doctest (test.test_regrtest.ArgsTestCase.test_doctest)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 1839, in test_doctest\r\n output = self.run_tests(\"--fail-env-changed\", \"-v\", \"-j1\", testname,\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 786, in run_tests\r\n return self.run_python(cmdargs, **kw)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 636, in run_python\r\n proc = self.run_command(args, **kw)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 627, in run_command\r\n self.fail(msg)\r\nAssertionError: Command ['C:\\\\Users\\\\luoga\\\\Desktop\\\\cpython\\\\PCbuild\\\\amd64\\\\python.exe', '-X', 'faulthandler', '-I', '-m', 'test', '--testdir=C:\\\\Users\\\\luoga\\\\AppData\\\\Local\\\\Temp\\\\tmppuliyejk', '--fail-env-changed', '-v', '-j1', 'test_regrtest_noop1'] failed with exit code 1, but exit code 2 expected!\r\n\r\nstdout:\r\n---\r\nTraceback (most recent call last):\r\n File \"\u003cfrozen runpy\u003e\", line 198, in _run_module_as_main\r\n File \"\u003cfrozen runpy\u003e\", line 88, in _run_code\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\__main__.py\", line 2, in \u003cmodule\u003e\r\n main()\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 511, in main\r\n Regrtest(ns).main(tests=tests)\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 503, in main\r\n exitcode = self.run_tests(selected, tests)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 474, in run_tests\r\n return self._run_tests(selected, tests)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 427, in _run_tests\r\n display_header()\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\utils.py\", line 564, in display_header\r\n print(\"== cwd:\", os.getcwd())\r\nUnicodeEncodeError: 'gbk' codec can't encode character '\\xe6' in position 61: illegal multibyte sequence\r\n== CPython 3.13.0a0 (heads/main:e57ecf6bbc, Sep 17 2023, 15:01:40) [MSC v.1935 64 bit (AMD64)]\r\n== Windows-10-10.0.19045-SP0 little-endian\r\n== Python build: release with_assert\r\n== cwd:\r\n---\r\n\r\n\r\n======================================================================\r\nFAIL: test_ignorefile (test.test_regrtest.ArgsTestCase.test_ignorefile)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 1164, in test_ignorefile\r\n output = self.run_tests(\"-v\", \"--ignorefile\", filename, testname)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 786, in run_tests\r\n return self.run_python(cmdargs, **kw)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 636, in run_python\r\n proc = self.run_command(args, **kw)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 627, in run_command\r\n self.fail(msg)\r\nAssertionError: Command ['C:\\\\Users\\\\luoga\\\\Desktop\\\\cpython\\\\PCbuild\\\\amd64\\\\python.exe', '-X', 'faulthandler', '-I', '-m', 'test', '--testdir=C:\\\\Users\\\\luoga\\\\AppData\\\\Local\\\\Temp\\\\tmpmmu_70er', '-v', '--ignorefile', '@test_8364_tmpæ', 'test_regrtest_noop8'] failed with exit code 1, but exit code 0 expected!\r\n\r\nstdout:\r\n---\r\nTraceback (most recent call last):\r\n File \"\u003cfrozen runpy\u003e\", line 198, in _run_module_as_main\r\n File \"\u003cfrozen runpy\u003e\", line 88, in _run_code\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\__main__.py\", line 2, in \u003cmodule\u003e\r\n main()\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 511, in main\r\n Regrtest(ns).main(tests=tests)\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 503, in main\r\n exitcode = self.run_tests(selected, tests)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 474, in run_tests\r\n return self._run_tests(selected, tests)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 427, in _run_tests\r\n display_header()\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\utils.py\", line 564, in display_header\r\n print(\"== cwd:\", os.getcwd())\r\nUnicodeEncodeError: 'gbk' codec can't encode character '\\xe6' in position 60: illegal multibyte sequence\r\n== CPython 3.13.0a0 (heads/main:e57ecf6bbc, Sep 17 2023, 15:01:40) [MSC v.1935 64 bit (AMD64)]\r\n== Windows-10-10.0.19045-SP0 little-endian\r\n== Python build: release with_assert\r\n== cwd:\r\n---\r\n\r\n\r\n======================================================================\r\nFAIL: test_leak_tmp_file (test.test_regrtest.ArgsTestCase.test_leak_tmp_file)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 1748, in test_leak_tmp_file\r\n output = self.run_tests(\"--fail-env-changed\", \"-v\", \"-j2\", *testnames,\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 786, in run_tests\r\n return self.run_python(cmdargs, **kw)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 636, in run_python\r\n proc = self.run_command(args, **kw)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 627, in run_command\r\n self.fail(msg)\r\nAssertionError: Command ['C:\\\\Users\\\\luoga\\\\Desktop\\\\cpython\\\\PCbuild\\\\amd64\\\\python.exe', '-X', 'faulthandler', '-I', '-m', 'test', '--testdir=C:\\\\Users\\\\luoga\\\\AppData\\\\Local\\\\Temp\\\\tmpilk6czg9', '--fail-env-changed', '-v', '-j2', 'test_regrtest_noop9', 'test_regrtest_noop10', 'test_regrtest_noop11'] failed with exit code 1, but exit code 3 expected!\r\n\r\nstdout:\r\n---\r\nTraceback (most recent call last):\r\n File \"\u003cfrozen runpy\u003e\", line 198, in _run_module_as_main\r\n File \"\u003cfrozen runpy\u003e\", line 88, in _run_code\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\__main__.py\", line 2, in \u003cmodule\u003e\r\n main()\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 511, in main\r\n Regrtest(ns).main(tests=tests)\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 503, in main\r\n exitcode = self.run_tests(selected, tests)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 474, in run_tests\r\n return self._run_tests(selected, tests)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 427, in _run_tests\r\n display_header()\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\utils.py\", line 564, in display_header\r\n print(\"== cwd:\", os.getcwd())\r\nUnicodeEncodeError: 'gbk' codec can't encode character '\\xe6' in position 60: illegal multibyte sequence\r\n== CPython 3.13.0a0 (heads/main:e57ecf6bbc, Sep 17 2023, 15:01:40) [MSC v.1935 64 bit (AMD64)]\r\n== Windows-10-10.0.19045-SP0 little-endian\r\n== Python build: release with_assert\r\n== cwd:\r\n---\r\n\r\n\r\n======================================================================\r\nFAIL: test_matchfile (test.test_regrtest.ArgsTestCase.test_matchfile)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 1188, in test_matchfile\r\n output = self.run_tests(\"-v\", testname)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 786, in run_tests\r\n return self.run_python(cmdargs, **kw)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 636, in run_python\r\n proc = self.run_command(args, **kw)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 627, in run_command\r\n self.fail(msg)\r\nAssertionError: Command ['C:\\\\Users\\\\luoga\\\\Desktop\\\\cpython\\\\PCbuild\\\\amd64\\\\python.exe', '-X', 'faulthandler', '-I', '-m', 'test', '--testdir=C:\\\\Users\\\\luoga\\\\AppData\\\\Local\\\\Temp\\\\tmpvwymz4h0', '-v', 'test_regrtest_noop18'] failed with exit code 1, but exit code 0 expected!\r\n\r\nstdout:\r\n---\r\nTraceback (most recent call last):\r\n File \"\u003cfrozen runpy\u003e\", line 198, in _run_module_as_main\r\n File \"\u003cfrozen runpy\u003e\", line 88, in _run_code\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\__main__.py\", line 2, in \u003cmodule\u003e\r\n main()\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 511, in main\r\n Regrtest(ns).main(tests=tests)\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 503, in main\r\n exitcode = self.run_tests(selected, tests)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 474, in run_tests\r\n return self._run_tests(selected, tests)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 427, in _run_tests\r\n display_header()\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\utils.py\", line 564, in display_header\r\n print(\"== cwd:\", os.getcwd())\r\nUnicodeEncodeError: 'gbk' codec can't encode character '\\xe6' in position 60: illegal multibyte sequence\r\n== CPython 3.13.0a0 (heads/main:e57ecf6bbc, Sep 17 2023, 15:01:40) [MSC v.1935 64 bit (AMD64)]\r\n== Windows-10-10.0.19045-SP0 little-endian\r\n== Python build: release with_assert\r\n== cwd:\r\n---\r\n\r\n\r\n======================================================================\r\nFAIL: test_print_warning (test.test_regrtest.ArgsTestCase.test_print_warning) (option='-v')\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 1702, in test_print_warning\r\n output = self.run_tests(*cmd, exitcode=EXITCODE_ENV_CHANGED)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 786, in run_tests\r\n return self.run_python(cmdargs, **kw)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 636, in run_python\r\n proc = self.run_command(args, **kw)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 627, in run_command\r\n self.fail(msg)\r\nAssertionError: Command ['C:\\\\Users\\\\luoga\\\\Desktop\\\\cpython\\\\PCbuild\\\\amd64\\\\python.exe', '-X', 'faulthandler', '-I', '-m', 'test', '--testdir=C:\\\\Users\\\\luoga\\\\AppData\\\\Local\\\\Temp\\\\tmp93duw8o3', '--fail-env-changed', '-v', 'test_regrtest_noop26'] failed with exit code 1, but exit code 3 expected!\r\n\r\nstdout:\r\n---\r\nTraceback (most recent call last):\r\n File \"\u003cfrozen runpy\u003e\", line 198, in _run_module_as_main\r\n File \"\u003cfrozen runpy\u003e\", line 88, in _run_code\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\__main__.py\", line 2, in \u003cmodule\u003e\r\n main()\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 511, in main\r\n Regrtest(ns).main(tests=tests)\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 503, in main\r\n exitcode = self.run_tests(selected, tests)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 474, in run_tests\r\n return self._run_tests(selected, tests)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 427, in _run_tests\r\n display_header()\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\utils.py\", line 564, in display_header\r\n print(\"== cwd:\", os.getcwd())\r\nUnicodeEncodeError: 'gbk' codec can't encode character '\\xe6' in position 60: illegal multibyte sequence\r\n== CPython 3.13.0a0 (heads/main:e57ecf6bbc, Sep 17 2023, 15:01:40) [MSC v.1935 64 bit (AMD64)]\r\n== Windows-10-10.0.19045-SP0 little-endian\r\n== Python build: release with_assert\r\n== cwd:\r\n---\r\n\r\n\r\n======================================================================\r\nFAIL: test_threading_excepthook (test.test_regrtest.ArgsTestCase.test_threading_excepthook)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 1659, in test_threading_excepthook\r\n output = self.run_tests(\"--fail-env-changed\", \"-v\", testname,\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 786, in run_tests\r\n return self.run_python(cmdargs, **kw)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 636, in run_python\r\n proc = self.run_command(args, **kw)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 627, in run_command\r\n self.fail(msg)\r\nAssertionError: Command ['C:\\\\Users\\\\luoga\\\\Desktop\\\\cpython\\\\PCbuild\\\\amd64\\\\python.exe', '-X', 'faulthandler', '-I', '-m', 'test', '--testdir=C:\\\\Users\\\\luoga\\\\AppData\\\\Local\\\\Temp\\\\tmpmugm4wgx', '--fail-env-changed', '-v', 'test_regrtest_noop43'] failed with exit code 1, but exit code 3 expected!\r\n\r\nstdout:\r\n---\r\nTraceback (most recent call last):\r\n File \"\u003cfrozen runpy\u003e\", line 198, in _run_module_as_main\r\n File \"\u003cfrozen runpy\u003e\", line 88, in _run_code\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\__main__.py\", line 2, in \u003cmodule\u003e\r\n main()\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 511, in main\r\n Regrtest(ns).main(tests=tests)\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 503, in main\r\n exitcode = self.run_tests(selected, tests)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 474, in run_tests\r\n return self._run_tests(selected, tests)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 427, in _run_tests\r\n display_header()\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\utils.py\", line 564, in display_header\r\n print(\"== cwd:\", os.getcwd())\r\nUnicodeEncodeError: 'gbk' codec can't encode character '\\xe6' in position 60: illegal multibyte sequence\r\n== CPython 3.13.0a0 (heads/main:e57ecf6bbc, Sep 17 2023, 15:01:40) [MSC v.1935 64 bit (AMD64)]\r\n== Windows-10-10.0.19045-SP0 little-endian\r\n== Python build: release with_assert\r\n== cwd:\r\n---\r\n\r\n\r\n======================================================================\r\nFAIL: test_unraisable_exc (test.test_regrtest.ArgsTestCase.test_unraisable_exc)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 1626, in test_unraisable_exc\r\n output = self.run_tests(\"--fail-env-changed\", \"-v\", testname,\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 786, in run_tests\r\n return self.run_python(cmdargs, **kw)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 636, in run_python\r\n proc = self.run_command(args, **kw)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 627, in run_command\r\n self.fail(msg)\r\nAssertionError: Command ['C:\\\\Users\\\\luoga\\\\Desktop\\\\cpython\\\\PCbuild\\\\amd64\\\\python.exe', '-X', 'faulthandler', '-I', '-m', 'test', '--testdir=C:\\\\Users\\\\luoga\\\\AppData\\\\Local\\\\Temp\\\\tmpyb99edxj', '--fail-env-changed', '-v', 'test_regrtest_noop45'] failed with exit code 1, but exit code 3 expected!\r\n\r\nstdout:\r\n---\r\nTraceback (most recent call last):\r\n File \"\u003cfrozen runpy\u003e\", line 198, in _run_module_as_main\r\n File \"\u003cfrozen runpy\u003e\", line 88, in _run_code\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\__main__.py\", line 2, in \u003cmodule\u003e\r\n main()\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 511, in main\r\n Regrtest(ns).main(tests=tests)\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 503, in main\r\n exitcode = self.run_tests(selected, tests)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 474, in run_tests\r\n return self._run_tests(selected, tests)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 427, in _run_tests\r\n display_header()\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\utils.py\", line 564, in display_header\r\n print(\"== cwd:\", os.getcwd())\r\nUnicodeEncodeError: 'gbk' codec can't encode character '\\xe6' in position 60: illegal multibyte sequence\r\n== CPython 3.13.0a0 (heads/main:e57ecf6bbc, Sep 17 2023, 15:01:40) [MSC v.1935 64 bit (AMD64)]\r\n== Windows-10-10.0.19045-SP0 little-endian\r\n== Python build: release with_assert\r\n== cwd:\r\n---\r\n\r\n\r\n======================================================================\r\nFAIL: test_worker_decode_error (test.test_regrtest.ArgsTestCase.test_worker_decode_error)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 1801, in test_worker_decode_error\r\n output = self.run_tests(\"--fail-env-changed\", \"-v\", \"-j1\", testname)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 786, in run_tests\r\n return self.run_python(cmdargs, **kw)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 636, in run_python\r\n proc = self.run_command(args, **kw)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\test_regrtest.py\", line 627, in run_command\r\n self.fail(msg)\r\nAssertionError: Command ['C:\\\\Users\\\\luoga\\\\Desktop\\\\cpython\\\\PCbuild\\\\amd64\\\\python.exe', '-X', 'faulthandler', '-I', '-m', 'test', '--testdir=C:\\\\Users\\\\luoga\\\\AppData\\\\Local\\\\Temp\\\\tmp_a6en_q3', '--fail-env-changed', '-v', '-j1', 'test_regrtest_noop46'] failed with exit code 1, but exit code 0 expected!\r\n\r\nstdout:\r\n---\r\nTraceback (most recent call last):\r\n File \"\u003cfrozen runpy\u003e\", line 198, in _run_module_as_main\r\n File \"\u003cfrozen runpy\u003e\", line 88, in _run_code\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\__main__.py\", line 2, in \u003cmodule\u003e\r\n main()\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 511, in main\r\n Regrtest(ns).main(tests=tests)\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 503, in main\r\n exitcode = self.run_tests(selected, tests)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 474, in run_tests\r\n return self._run_tests(selected, tests)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\main.py\", line 427, in _run_tests\r\n display_header()\r\n File \"C:\\Users\\luoga\\Desktop\\cpython\\Lib\\test\\libregrtest\\utils.py\", line 564, in display_header\r\n print(\"== cwd:\", os.getcwd())\r\nUnicodeEncodeError: 'gbk' codec can't encode character '\\xe6' in position 60: illegal multibyte sequence\r\n== CPython 3.13.0a0 (heads/main:e57ecf6bbc, Sep 17 2023, 15:01:40) [MSC v.1935 64 bit (AMD64)]\r\n== Windows-10-10.0.19045-SP0 little-endian\r\n== Python build: release with_assert\r\n== cwd:\r\n---\r\n\r\n\r\n----------------------------------------------------------------------\r\nRan 98 tests in 22.482s\r\n\r\nFAILED (failures=8, skipped=3)\r\ntest test_regrtest failed\r\ntest_regrtest failed (8 failures)\r\n\r\n== Tests result: FAILURE ==\r\n\r\n1 test failed:\r\n test_regrtest\r\n\r\nTotal duration: 22.6 sec\r\nTotal tests: run=98 failures=8 skipped=3\r\nTotal test files: run=1/1 failed=1\r\nResult: FAILURE\r\n```\r\n\r\n\r\n### CPython versions tested on:\r\n\r\nCPython main branch\r\n\r\n### Operating systems tested on:\r\n\r\nWindows\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-109509\r\n* gh-109537\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/littlebutt","@type":"Person","name":"littlebutt"},"datePublished":"2023-09-17T08:25:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/109508/cpython/issues/109508"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:60d120e8-1ea4-4a5a-bf94-22322f254624 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 83D2:1E4FEF:210C3D1:2AEFC6C:696B4C8E |
| html-safe-nonce | 65fac46e1bf354f66be1ad91480762cba28b54ad572235e25d817a9ca03417e8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0QyOjFFNEZFRjoyMTBDM0QxOjJBRUZDNkM6Njk2QjRDOEUiLCJ2aXNpdG9yX2lkIjoiMjQwNDcyNjQ2Mzk0NDkzNjU5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f39c3883f52b1271f0c5a75bb7bcb19c340a99bca5611e75a66afd83cb5b044e |
| hovercard-subject-tag | issue:1899702628 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/109508/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b3ab826261788ece03e160bcfbbc031baf8365639e03ae8734a0587d6cf27fae/python/cpython/issues/109508 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b3ab826261788ece03e160bcfbbc031baf8365639e03ae8734a0587d6cf27fae/python/cpython/issues/109508 |
| og:image:alt | Bug report Bug description: When I ran .\PCbuild\amd64\python.exe -m test -v test_regrtest in Powershell on Windows 10, it showed that this test case failed with 8 failures. All cases were releted ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | littlebutt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width