Skip to content

[3.15] Backport regrtest changes from the main branch - #162281

Merged
vstinner merged 3 commits into
python:3.15from
vstinner:regrtest15
Nov 19, 2026
Merged

vstinner merged 3 commits into
python:3.15from
vstinner:regrtest15

Conversation

@vstinner

Copy link
Copy Markdown
Member

No description provided.

If the UTF-8 mode is disabled and/or if PYTHONCOERCECLOCALE
environment variable is set to "0": mention it in the "== encodings"
regrtest header.

If the locale encoding and the filesystem encoding are equal,
log "locale=FS=<encoding>" to have a shorter output.

On Windows, log ANSI and OEM code pages.

Backport to 3.15: add _winapi import to libregrtest.utils.

(cherry picked from commit f4fbacf)
When running "python -m test" with --tsan or --tsan-parallel,
display the test header (log TSAN_OPTIONS env var).

(cherry picked from commit 53f4cad)
@vstinner
vstinner merged commit ecf8cfe into python:3.15 Nov 19, 2026
60 checks passed
@vstinner
vstinner deleted the regrtest15 branch November 19, 2026 20:46
@miss-islington-app

Copy link
Copy Markdown

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Nov 19, 2026

Copy link
Copy Markdown

GH-162289 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Nov 19, 2026
@bedevere-bot

Copy link
Copy Markdown

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 Windows Server 2022 NoGIL 3.15 (tier-1) has failed when building commit ecf8cfe.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/2120/builds/703) and take a look at the build logs.
  4. Check if the failure is related to this commit (ecf8cfe) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/#/builders/2120/builds/703

Failed tests:

  • test_faulthandler

Failed subtests:

  • test_dump_traceback_later_file - test.test_faulthandler.FaultHandlerTests.test_dump_traceback_later_file
  • test_wrapped_exception - test.test_multiprocessing_spawn.test_threads.WithThreadsTestPool.test_wrapped_exception

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "C:\bbarea\3.15.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\contextlib.py", line 116, in inner
    return func(*args, **kwds)
  File "C:\bbarea\3.15.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\test\_test_multiprocessing.py", line 3224, in test_wrapped_exception
    with self.Pool(1) as p:
         ~~~~~~~~~^^^
  File "C:\bbarea\3.15.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\multiprocessing\pool.py", line 739, in __exit__
    self.terminate()
    ~~~~~~~~~~~~~~^^
  File "C:\bbarea\3.15.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\multiprocessing\pool.py", line 657, in terminate
    self._terminate()
    ~~~~~~~~~~~~~~~^^
  File "C:\bbarea\3.15.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\multiprocessing\util.py", line 354, in __call__
    res = self._callback(*self._args, **self._kwargs)
  File "C:\bbarea\3.15.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\multiprocessing\pool.py", line 690, in _terminate_pool
    change_notifier.put(None)
    ~~~~~~~~~~~~~~~~~~~^^^^^^
  File "C:\bbarea\3.15.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\multiprocessing\queues.py", line 394, in put
    self._writer.send_bytes(obj)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^
  File "C:\bbarea\3.15.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\multiprocessing\connection.py", line 211, in send_bytes
    self._send_bytes(m[offset:offset + size])
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\bbarea\3.15.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\multiprocessing\connection.py", line 298, in _send_bytes
    raise ValueError("concurrent send_bytes() calls "
                     "are not supported")
ValueError: concurrent send_bytes() calls are not supported


Traceback (most recent call last):
  File "C:\bbarea\3.15.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\threading.py", line 1219, in _bootstrap_inner
    self._context.run(self.run)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "C:\bbarea\3.15.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\threading.py", line 1161, in run
    self._target(*self._args, **self._kwargs)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\bbarea\3.15.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\multiprocessing\pool.py", line 595, in _handle_results
    cache[job]._set(i, obj)
    ~~~~~~~~~~~~~~~^^^^^^^^
  File "C:\bbarea\3.15.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\multiprocessing\pool.py", line 783, in _set
    del self._cache[self._job]
        ~~~~~~~~~~~^^^^^^^^^^^
  File "C:\bbarea\3.15.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\multiprocessing\pool.py", line 171, in __delitem__
    self.notifier.put(None)
    ~~~~~~~~~~~~~~~~~^^^^^^
  File "C:\bbarea\3.15.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\multiprocessing\queues.py", line 394, in put
    self._writer.send_bytes(obj)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^
  File "C:\bbarea\3.15.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\multiprocessing\connection.py", line 211, in send_bytes
    self._send_bytes(m[offset:offset + size])
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\bbarea\3.15.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\multiprocessing\connection.py", line 298, in _send_bytes
    raise ValueError("concurrent send_bytes() calls "
                     "are not supported")
ValueError: concurrent send_bytes() calls are not supported
k


Traceback (most recent call last):
  File "C:\bbarea\3.15.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\test\test_faulthandler.py", line 715, in test_dump_traceback_later_file
    self.check_dump_traceback_later(filename=filename)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "C:\bbarea\3.15.itamaro-win64-srv-22-aws.x64.nogil\build\Lib\test\test_faulthandler.py", line 699, in check_dump_traceback_later
    self.assertRegex(trace, regex)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
AssertionError: Regex didn't match: '^Timeout \\(0:00:00.500000\\)!\\nThread 0x[0-9a-f]+( \\[.*\\])? \\(most recent call first\\):\\n  File "<string>", line 17 in func\n  File "<string>", line 26 in <module>$' not found in ''

vstinner added a commit that referenced this pull request Nov 19, 2026
* [3.15] Backport regrtest changes from the main branch (#162281)

* Enhance encodings in regrtest header (#161959)

If the UTF-8 mode is disabled and/or if PYTHONCOERCECLOCALE
environment variable is set to "0": mention it in the "== encodings"
regrtest header.

If the locale encoding and the filesystem encoding are equal,
log "locale=FS=<encoding>" to have a shorter output.

On Windows, log ANSI and OEM code pages.

Backport to 3.15: add types and _winapi imports to libregrtest.utils.

Backport to 3.14: add _winapi.GetOEMCP() function,
only log utf8=1 if UTF-8 Mode is enabled in regrtest.

(cherry picked from commit f4fbacf)

* Display test header when running python -m test --tsan (#162249)

When running "python -m test" with --tsan or --tsan-parallel,
display the test header (log TSAN_OPTIONS env var).

(cherry picked from commit 53f4cad)

(cherry picked from commit ecf8cfe)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants