mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
GH-120804: Remove get_child_watcher
and set_child_watcher
from asyncio (#120818)
This commit is contained in:
parent
4717aaa1a7
commit
96ead91f0f
6 changed files with 18 additions and 227 deletions
|
@ -550,10 +550,8 @@ class TestCase(unittest.TestCase):
|
|||
policy = support.maybe_get_event_loop_policy()
|
||||
if policy is not None:
|
||||
try:
|
||||
with warnings.catch_warnings():
|
||||
warnings.simplefilter('ignore', DeprecationWarning)
|
||||
watcher = policy.get_child_watcher()
|
||||
except NotImplementedError:
|
||||
watcher = policy._watcher
|
||||
except AttributeError:
|
||||
# watcher is not implemented by EventLoopPolicy, e.g. Windows
|
||||
pass
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue