mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
gh-130322: drop deprecation of asyncio.set_event_loop (#132349)
This commit is contained in:
parent
e6ef47ac22
commit
05d27a84f4
16 changed files with 46 additions and 64 deletions
|
|
@ -1113,11 +1113,11 @@ class TestFunctional(unittest.TestCase):
|
|||
|
||||
def setUp(self):
|
||||
self.loop = asyncio.new_event_loop()
|
||||
asyncio._set_event_loop(self.loop)
|
||||
asyncio.set_event_loop(self.loop)
|
||||
|
||||
def tearDown(self):
|
||||
self.loop.close()
|
||||
asyncio._set_event_loop(None)
|
||||
asyncio.set_event_loop(None)
|
||||
|
||||
def test_add_reader_invalid_argument(self):
|
||||
def assert_raises():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue