René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:60d120e8-1ea4-4a5a-bf94-22322f254624
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id83D2:1E4FEF:210C3D1:2AEFC6C:696B4C8E
html-safe-nonce65fac46e1bf354f66be1ad91480762cba28b54ad572235e25d817a9ca03417e8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0QyOjFFNEZFRjoyMTBDM0QxOjJBRUZDNkM6Njk2QjRDOEUiLCJ2aXNpdG9yX2lkIjoiMjQwNDcyNjQ2Mzk0NDkzNjU5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf39c3883f52b1271f0c5a75bb7bcb19c340a99bca5611e75a66afd83cb5b044e
hovercard-subject-tagissue:1899702628
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/109508/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b3ab826261788ece03e160bcfbbc031baf8365639e03ae8734a0587d6cf27fae/python/cpython/issues/109508
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b3ab826261788ece03e160bcfbbc031baf8365639e03ae8734a0587d6cf27fae/python/cpython/issues/109508
og:image:altBug 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelittlebutt
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/109508#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F109508
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F109508
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/109508
Reloadhttps://github.com/python/cpython/issues/109508
Reloadhttps://github.com/python/cpython/issues/109508
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/109508
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/issues/109508
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/109508
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/109508
Several Tests fail in test_regrtest.pyhttps://github.com/python/cpython/issues/109508#top
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/littlebutt
https://github.com/littlebutt
littlebutthttps://github.com/littlebutt
on Sep 17, 2023https://github.com/python/cpython/issues/109508#issue-1899702628
gh-109508: fix test_regrtest #109509https://github.com/python/cpython/pull/109509
gh-109508: Fix libregrtest formatting of getcwd() #109537https://github.com/python/cpython/pull/109537
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.