bpo-36373: Fix deprecation warnings (GH-15889)

https://bugs.python.org/issue36373
This commit is contained in:
Andrew Svetlov 2019-09-11 11:20:24 +03:00 committed by Miss Islington (bot)
parent efd5741ae9
commit 7264e92b71
5 changed files with 12 additions and 12 deletions

View file

@ -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):

View file

@ -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):