Skip to content

Conversation

graingert
Copy link
Contributor

@graingert graingert commented Jul 19, 2022

fix asyncio GenericWatcherTests.test_create_subprocess_fails_with_inactive_watcher

the test was never run, because it was missing the TestCase class
the test failed because the wrong attribute was patched

@bedevere-bot bedevere-bot added tests Tests in the Lib/test dir awaiting review labels Jul 19, 2022
@graingert graingert changed the title fix GenericWatcherTests.test_create_subprocess_fails_with_inactive_wa… fix asyncio GenericWatcherTests.test_create_subprocess_fails_with_inactive_wa… Jul 19, 2022
@graingert graingert force-pushed the fix-generic-watcher-tests branch from 823b0c4 to 9877b92 Compare July 19, 2022 15:32
@graingert graingert changed the title fix asyncio GenericWatcherTests.test_create_subprocess_fails_with_inactive_wa… gh-95009: fix asyncio GenericWatcherTests.test_create_subprocess_fails_with_inactive_wa… Jul 19, 2022
@graingert
Copy link
Contributor Author

this is just a test change and doesn't need news

@graingert graingert changed the title gh-95009: fix asyncio GenericWatcherTests.test_create_subprocess_fails_with_inactive_wa… gh-95010: fix asyncio GenericWatcherTests.test_create_subprocess_fails_with_inactive_wa… Jul 19, 2022
…s_fails_with_inactive_watcher

the test was never run, because it was missing the TestCase class
the test failed because the wrong attribute was patched
@graingert graingert force-pushed the fix-generic-watcher-tests branch from 4f47e21 to 20b9bd0 Compare July 19, 2022 15:50
@graingert
Copy link
Contributor Author

It's best to review this in side-by-side mode, because GenericWatcherTests needed to be indented: https://github.com/python/cpython/pull/95009/files?diff=split

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

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

👍

@graingert
Copy link
Contributor Author

This should probably be backported to 3.10 as it's needed to verify a bugfix

@kumaraditya303 kumaraditya303 added needs backport to 3.10 only security fixes needs backport to 3.11 only security fixes labels Jul 21, 2022
@serhiy-storchaka serhiy-storchaka merged commit 834bd5d into python:main Jul 21, 2022
@miss-islington
Copy link
Contributor

Thanks @graingert for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-95092 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed needs backport to 3.11 only security fixes needs backport to 3.10 only security fixes labels Jul 21, 2022
@bedevere-bot
Copy link

GH-95093 is a backport of this pull request to the 3.10 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 21, 2022
…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 commit 834bd5d)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 21, 2022
…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 commit 834bd5d)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
@graingert graingert deleted the fix-generic-watcher-tests branch July 21, 2022 11:57
miss-islington added a commit that referenced this pull request Jul 21, 2022
…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 commit 834bd5d)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants