summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2019-09-11 08:20:24 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-09-11 08:20:24 (GMT)
commit7264e92b718d307cc499b2f10eab7644b00f0499 (patch)
tree7c1d18de546bd8373eeb899b8cf3824874a30dfc /Lib/test/test_asyncio
parentefd5741ae953e50a6654e04cf731da86a1307296 (diff)
downloadcpython-7264e92b718d307cc499b2f10eab7644b00f0499.zip
cpython-7264e92b718d307cc499b2f10eab7644b00f0499.tar.gz
cpython-7264e92b718d307cc499b2f10eab7644b00f0499.tar.bz2
bpo-36373: Fix deprecation warnings (GH-15889)
https://bugs.python.org/issue36373
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r--Lib/test/test_asyncio/test_locks.py7
-rw-r--r--Lib/test/test_asyncio/test_queues.py3
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 d69b56d..a9953b4 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 02e8e43..171176c 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):