Skip to content

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

Open
miss-islington wants to merge 2 commits into
python:3.15from
miss-islington:backport-198a835-3.15
Open

[3.15] gh-155411: Fix test.support.subTests() for asynchronous tests (GH-155412)#155544
miss-islington wants to merge 2 commits into
python:3.15from
miss-islington:backport-198a835-3.15

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 storchaka@gmail.com

…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 <storchaka@gmail.com>
Running an event loop sets it, and regrtest reports it as a change of
the environment when the tests run in a single process.
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