Skip to content

Log UTF-8 mode and PYTHONCOERCECLOCALE in regrtest header - #161959

Merged
vstinner merged 2 commits into
python:mainfrom
vstinner:regrtest_encodings
Nov 14, 2026
Merged

vstinner merged 2 commits into
python:mainfrom
vstinner:regrtest_encodings

Conversation

@vstinner

Copy link
Copy Markdown
Member

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.

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
vstinner enabled auto-merge (squash) November 14, 2026 00:07
@vstinner
vstinner merged commit f4fbacf into python:main Nov 14, 2026
60 checks passed
@vstinner
vstinner deleted the regrtest_encodings branch November 14, 2026 00:31
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)
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.

1 participant