From 7264e92b718d307cc499b2f10eab7644b00f0499 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Wed, 11 Sep 2019 11:20:24 +0300 Subject: bpo-36373: Fix deprecation warnings (GH-15889) https://bugs.python.org/issue36373 --- Lib/test/test_asyncio/test_locks.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Lib/test/test_asyncio/test_locks.py') diff --git a/Lib/test/test_asyncio/test_locks.py b/Lib/test/test_asyncio/test_locks.py index d69b56dcda2..a9953b4b2a2 100644 --- a/Lib/test/test_asyncio/test_locks.py +++ b/Lib/test/test_asyncio/test_locks.py @@ -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): -- cgit v1.2.3