diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2019-09-11 10:40:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-11 10:40:36 (GMT) |
commit | 4601f7a49fe8ed00c4b6b70b0eda2b3922568e9b (patch) | |
tree | 4a52abadaf3d6be61df7a17de12cb90e1de4b941 /Lib/test/test_asyncio | |
parent | 80db4b4be54ccdb5b67821506b6db2b27bd7c28a (diff) | |
download | cpython-4601f7a49fe8ed00c4b6b70b0eda2b3922568e9b.zip cpython-4601f7a49fe8ed00c4b6b70b0eda2b3922568e9b.tar.gz cpython-4601f7a49fe8ed00c4b6b70b0eda2b3922568e9b.tar.bz2 |
[3.8] bpo-36373: Fix deprecation warnings (GH-15889) (GH-15901)
https://bugs.python.org/issue36373
(cherry picked from commit 7264e92b718d307cc499b2f10eab7644b00f0499)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Diffstat (limited to 'Lib/test/test_asyncio')
-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 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): |