Skip to content

[3.14] gh-155411: Fix test.support.subTests() for asynchronous tests (GH-155412) - #155545

Merged
serhiy-storchaka merged 2 commits into
python:3.14from
miss-islington:backport-198a835-3.14
Aug 12, 2026
Merged

[3.14] gh-155411: Fix test.support.subTests() for asynchronous tests (GH-155412)#155545
serhiy-storchaka merged 2 commits into
python:3.14from
miss-islington:backport-198a835-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

An asynchronous test was wrapped in a synchronous function, which
discarded the coroutine without awaiting it, so the test did not run at
all and was reported as successful.
(cherry picked from commit 198a835)

Co-authored-by: Serhiy Storchaka [email protected]

…ythonGH-155412)

An asynchronous test was wrapped in a synchronous function, which
discarded the coroutine without awaiting it, so the test did not run at
all and was reported as successful.
(cherry picked from commit 198a835)

Co-authored-by: Serhiy Storchaka <[email protected]>
Running an event loop sets it, and regrtest reports it as a change of
the environment when the tests run in a single process.
@serhiy-storchaka
serhiy-storchaka merged commit 5a2a13a into python:3.14 Aug 12, 2026
49 checks passed
@miss-islington
miss-islington deleted the backport-198a835-3.14 branch August 12, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants