diff options
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_asyncio/test_locks.py | 7 | ||||
-rw-r--r-- | Lib/test/test_asyncio/test_queues.py | 3 |
2 files changed, 4 insertions, 6 deletions
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): diff --git a/Lib/test/test_asyncio/test_queues.py b/Lib/test/test_asyncio/test_queues.py index 02e8e43ccee..171176c9fc5 100644 --- a/Lib/test/test_asyncio/test_queues.py +++ b/Lib/test/test_asyncio/test_queues.py @@ -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): |