Skip to content

[3.12] gh-108388: regrtest splits test_asyncio package (GH-108393) - #108397

Merged
ambv merged 1 commit into
python:3.12from
miss-islington:backport-174e9da-3.12
Aug 24, 2023
Merged

ambv merged 1 commit into
python:3.12from
miss-islington:backport-174e9da-3.12

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 24, 2023 •

Copy link
Copy Markdown
Contributor

Currently, test_asyncio package is only splitted into sub-tests when
using command "./python -m test". With this change, it's also
splitted when passing it on the command line:
"./python -m test test_asyncio".

Remove the concept of "STDTESTS". Python is now mature enough to not
have to bother with that anymore. Removing STDTESTS simplify the
code.
(cherry picked from commit 174e9da)

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

Currently, test_asyncio package is only splitted into sub-tests when
using command "./python -m test". With this change, it's also
splitted when passing it on the command line:
"./python -m test test_asyncio".

Remove the concept of "STDTESTS". Python is now mature enough to not
have to bother with that anymore. Removing STDTESTS simplify the
code.
(cherry picked from commit 174e9da)

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

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good bot

@vstinner

Copy link
Copy Markdown
Member

To test the feature manually:

$ ./python -m test test_asyncio --list-tests|wc -l
30

Without the fix, it displayed:

$ ./python -m test test_asyncio --list-tests|wc -l
1
@ambv
ambv merged commit 9903fe1 into python:3.12 Aug 24, 2023
@miss-islington
miss-islington deleted the backport-174e9da-3.12 branch August 24, 2023 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

4 participants