Skip to content

bpo-47076: fix test_asyncio: test_get_cancelled()#32020

Closed
kumaraditya303 wants to merge 1 commit into
python:mainfrom
kumaraditya303:fix-ci
Closed

bpo-47076: fix test_asyncio: test_get_cancelled()#32020
kumaraditya303 wants to merge 1 commit into
python:mainfrom
kumaraditya303:fix-ci

Conversation

@kumaraditya303

@kumaraditya303 kumaraditya303 commented Mar 21, 2022

Copy link
Copy Markdown
Contributor

@kumaraditya303

Copy link
Copy Markdown
Contributor Author

@sweeneyde Can you add Test with buildbots label ?

@sweeneyde sweeneyde added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Mar 21, 2022
@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @sweeneyde for commit 0eb0db7 🤖

If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Mar 21, 2022
@sweeneyde sweeneyde requested a review from asvetlov March 21, 2022 06:43
@kumaraditya303

Copy link
Copy Markdown
Contributor Author

cc @vstinner


async def queue_get():
started.set()
return await asyncio.wait_for(q.get(), 0.051)

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.

is the wait_for() call still useful?

@asvetlov asvetlov Mar 22, 2022

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The whole test is redundant IMHO.
Please take a look at #32040 for the alternative fix that affects more problematic tests.

@asvetlov

Copy link
Copy Markdown
Contributor

Thanks for the PR!
#32040 was merged with more fixes

@asvetlov asvetlov closed this Mar 22, 2022
@kumaraditya303 kumaraditya303 deleted the fix-ci branch March 22, 2022 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants