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

gh-82504: deprecate the MultiLoopChildWatcher#94648

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
Closed
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
16 commits
Select commitHold shift + click to select a range
161916c
deprecate the MultiLoopChildWatcher
graingertJul 7, 2022
5b2f920
📜🤖 Added by blurb_it.
blurb-it[bot]Jul 7, 2022
88b01a4
delete the skipped MultiLoopChildWatcher tests
graingertJul 7, 2022
9a2100f
test that the MultiLoopChildWatcher is deprecated
graingertJul 7, 2022
a956000
Merge branch 'main' into deprecate-multi-loop-watcher
graingertJul 7, 2022
ae826fa
Update Misc/NEWS.d/next/Library/2022-07-07-09-04-49.gh-issue-82504.6x…
graingertJul 18, 2022
1ef16e9
Update Doc/library/asyncio-policy.rst
graingertJul 18, 2022
dff64a5
Update Doc/library/asyncio-policy.rst
graingertJul 18, 2022
4b379b4
add what's new section for MultiLoopChildWatcher
graingertJul 18, 2022
a14a694
move the MultiLoopChildWatcher deprecation to the empty 'Deprecated' …
graingertJul 18, 2022
821ccfc
Update Doc/whatsnew/3.12.rst
graingertJul 18, 2022
69fe4d7
Merge branch 'main' into deprecate-multi-loop-watcher
graingertJul 18, 2022
2e6e996
split Deprecated by when the deprecations are schduled
graingertJul 18, 2022
7f16eab
Merge branch 'main' into deprecate-multi-loop-watcher
graingertJul 19, 2022
d40b465
Merge branch 'main' into deprecate-multi-loop-watcher
graingertJul 22, 2022
bc85892
Merge branch 'main' into deprecate-multi-loop-watcher
graingertAug 6, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletionsDoc/library/asyncio-policy.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -232,6 +232,7 @@ implementation used by the asyncio event loop:
:py:data:`SIGCHLD` is received).

.. versionadded:: 3.8
.. deprecated-removed:: 3.12 3.14

.. class:: SafeChildWatcher

Expand Down
12 changes: 12 additions & 0 deletionsDoc/whatsnew/3.12.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -139,6 +139,18 @@ CPython bytecode changes
Deprecated
==========

The following modules and APIs have been deprecated in this Python release,
and will be removed in Python 3.14.

APIs:

* :class:`asyncio.MultiLoopChildWatcher` (:gh:`94648`)

The following APIs were deprecated in this Python release and will be removed,
although there is currently no date scheduled for their removal.

APIs:

* :class:`typing.Hashable` and :class:`typing.Sized` aliases for :class:`collections.abc.Hashable`
and :class:`collections.abc.Sized`. (:gh:`94309`.)

Expand Down
1 change: 1 addition & 0 deletionsLib/asyncio/unix_events.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1229,6 +1229,7 @@ class MultiLoopChildWatcher(AbstractChildWatcher):
# but retrieves the current loop by get_running_loop()

def __init__(self):
warnings._deprecated("asyncio.MultiLoopChildWatcher", remove=(3, 14))
self._callbacks = {}
self._saved_sighandler = None

Expand Down
12 changes: 5 additions & 7 deletionsLib/test/test_asyncio/test_subprocess.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -666,13 +666,6 @@ class SubprocessThreadedWatcherTests(SubprocessWatcherMixin,

Watcher = unix_events.ThreadedChildWatcher

@unittest.skip("bpo-38323: MultiLoopChildWatcher has a race condition \
and these tests can hang the test suite")
class SubprocessMultiLoopWatcherTests(SubprocessWatcherMixin,
test_utils.TestCase):

Watcher = unix_events.MultiLoopChildWatcher

class SubprocessSafeWatcherTests(SubprocessWatcherMixin,
test_utils.TestCase):

Expand DownExpand Up@@ -701,6 +694,11 @@ class SubprocessPidfdWatcherTests(SubprocessWatcherMixin,
Watcher = unix_events.PidfdChildWatcher


class MultiLoopChildWatcherTests(unittest.TestCase):
def test_deprecated(self):
with self.assertWarns(DeprecationWarning):
asyncio.MultiLoopChildWatcher()

class GenericWatcherTests(test_utils.TestCase):

def test_create_subprocess_fails_with_inactive_watcher(self):
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
Deprecate :class:`asyncio.MultiLoopChildWatcher` to be removed in Python 3.14.

[8]ページ先頭

©2009-2025 Movatter.jp