Repository navigation
Log UTF-8 mode and PYTHONCOERCECLOCALE in regrtest header - #161959
Merged
Merged
Conversation
If the UTF-8 mode is disabled and/or if PYTHONCOERCECLOCALE environment variable is set to "0": mention it in the "== encodings" regrtest header. Also, if the locale encoding and the filesystem encoding are equal, log "locale=FS=<encoding>" to have a shorter output.
vstinner
enabled auto-merge (squash)
November 14, 2026 00:07
vstinner
added a commit
that referenced
this pull request
Nov 19, 2026
* 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. (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) * Add missing types import
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If the UTF-8 mode is disabled and/or if PYTHONCOERCECLOCALE environment variable is set to "0": mention it in the "== encodings" regrtest header.
Also, if the locale encoding and the filesystem encoding are equal, log "locale=FS=" to have a shorter output.