Skip to content

[3.14] Backport regrtest changes from the main branch (GH-162281) - #162289

Closed
miss-islington wants to merge 1 commit into
python:3.14from
miss-islington:backport-ecf8cfe-3.14
Closed

miss-islington wants to merge 1 commit into
python:3.14from
miss-islington:backport-ecf8cfe-3.14

Conversation

@miss-islington

Copy link
Copy Markdown
Contributor

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=" 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)

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
    (cherry picked from commit ecf8cfe)

Co-authored-by: Victor Stinner vstinner@python.org

* Enhance encodings in regrtest header (pythonGH-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 (pythonGH-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
(cherry picked from commit ecf8cfe)

Co-authored-by: Victor Stinner <vstinner@python.org>
@vstinner

Copy link
Copy Markdown
Member

I backported the change manually to 3.14: #162298.

@vstinner vstinner closed this Nov 19, 2026
auto-merge was automatically disabled November 19, 2026 22:57

Pull request was closed

@miss-islington
miss-islington deleted the backport-ecf8cfe-3.14 branch November 19, 2026 22:58
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