gh-119121: Fix and test `async.staggered.staggered_race` by sobolevn · Pull Request #119173 · python/cpython · GitHub
Skip to content

gh-119121: Fix and test async.staggered.staggered_race - #119173

Merged
sobolevn merged 3 commits into
python:mainfrom
sobolevn:issue-119121
May 20, 2024
Merged

gh-119121: Fix and test async.staggered.staggered_race#119173
sobolevn merged 3 commits into
python:mainfrom
sobolevn:issue-119121

Conversation

@sobolevn

@sobolevn sobolevn commented May 19, 2024

Copy link
Copy Markdown
Member

I've added a couple of tests for this function as well, to prevent simple future regressions.

Please, note that this set of tests is clearly not enough to cover all the cases in this function. Right now it only covers several simple use-cases. In the future we can also test:

  • loop= argument
  • Cleanups of running tasks
  • __debug__ route
  • delay corner cases
  • etc

But, I think that testing green path is good enough for now.
I can commit more tests in the next PRs, since they will require quite a lot of effort.

Refs #114282
This PR does need a 3.13 backport.

@JelleZijlstra JelleZijlstra 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.

Thanks!

Comment thread Lib/test/test_asyncio/test_staggered.py Outdated
@sobolevn
sobolevn merged commit 16b46eb into python:main May 20, 2024
@miss-islington-app

Copy link
Copy Markdown

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 20, 2024
…nGH-119173)

(cherry picked from commit 16b46eb)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
@bedevere-app

bedevere-app Bot commented May 20, 2024

Copy link
Copy Markdown

GH-119206 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label May 20, 2024
sobolevn added a commit that referenced this pull request May 20, 2024
…19173) (#119206)

gh-119121: Fix and test `async.staggered.staggered_race` (GH-119173)
(cherry picked from commit 16b46eb)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
@bedevere-bot

Copy link
Copy Markdown

Kronuz pushed a commit to Kronuz/cpython that referenced this pull request May 20, 2024
…pythonGH-119173) (python#119206)

pythongh-119121: Fix and test `async.staggered.staggered_race` (pythonGH-119173)
(cherry picked from commit 16b46eb)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
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.

4 participants