mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
bpo-36373: Fix deprecation warnings (GH-15889)
https://bugs.python.org/issue36373
This commit is contained in:
parent
efd5741ae9
commit
7264e92b71
5 changed files with 12 additions and 12 deletions
|
@ -500,10 +500,9 @@ class ConditionTests(test_utils.TestCase):
|
|||
self.assertIs(cond._loop, self.loop)
|
||||
|
||||
def test_ctor_noloop(self):
|
||||
with self.assertWarns(DeprecationWarning):
|
||||
asyncio.set_event_loop(self.loop)
|
||||
cond = asyncio.Condition()
|
||||
self.assertIs(cond._loop, self.loop)
|
||||
asyncio.set_event_loop(self.loop)
|
||||
cond = asyncio.Condition()
|
||||
self.assertIs(cond._loop, self.loop)
|
||||
|
||||
def test_wait(self):
|
||||
with self.assertWarns(DeprecationWarning):
|
||||
|
|
|
@ -83,8 +83,7 @@ class QueueBasicTests(_QueueTestBase):
|
|||
|
||||
def test_ctor_noloop(self):
|
||||
asyncio.set_event_loop(self.loop)
|
||||
with self.assertWarns(DeprecationWarning):
|
||||
q = asyncio.Queue()
|
||||
q = asyncio.Queue()
|
||||
self.assertIs(q._loop, self.loop)
|
||||
|
||||
def test_repr(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue