Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.10] gh-95010: Fix asyncio GenericWatcherTests.test_create_subprocess_fail…#95099

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

@graingert
Copy link
Contributor

@graingertgraingert commentedJul 21, 2022
edited
Loading

…s_with_inactive_watcher (GH-95009)

The test was never run, because it was missing the TestCase class.
The test failed because the wrong attribute was patched.
(cherry picked from commit834bd5d)

Co-authored-by: Thomas Graingertagrain@gmail.com

…s_fails_with_inactive_watcher (pythonGH-95009)The test was never run, because it was missing the TestCase class.The test failed because the wrong attribute was patched.(cherry picked from commit834bd5d)Co-authored-by: Thomas Grainger <tagrain@gmail.com>
@bedevere-botbedevere-bot added testsTests in the Lib/test dir awaiting review labelsJul 21, 2022
@serhiy-storchakaserhiy-storchaka changed the titlegh-95010: Fix asyncio GenericWatcherTests.test_create_subprocess_fail…[3.10] gh-95010: Fix asyncio GenericWatcherTests.test_create_subprocess_fail…Jul 21, 2022
Comment on lines +864 to +868

Choose a reason for hiding this comment

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

Why not just useself.loop.run_until_complete() as in other tests?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

theGenericWatcherTests don't have aself.loop, andSubprocessWatcherMixin (which setsself.loop) callsget_event_loop_policy().attach_loop and this test case is testing what happens whenattach_loop isn't called

Choose a reason for hiding this comment

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

Many classes setself.loop. For this test you can inherit fromtest_utils.TestCase and add

defsetUp(self):super().setUp()self.loop=asyncio.new_event_loop()self.set_event_loop(self.loop)

@graingert
Copy link
ContributorAuthor

I think I'll try to hurdle this hurdle when backporting#94184

@graingertgraingert deleted the backport-834bd5d-3.10 branchJuly 23, 2022 01:47
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@serhiy-storchakaserhiy-storchakaserhiy-storchaka left review comments

@1st11st1Awaiting requested review from 1st11st1 will be requested when the pull request is marked ready for review1st1 is a code owner

@asvetlovasvetlovAwaiting requested review from asvetlovasvetlov will be requested when the pull request is marked ready for reviewasvetlov is a code owner

Assignees

No one assigned

Labels

awaiting reviewskip newstestsTests in the Lib/test dir

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@graingert@serhiy-storchaka@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp