diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2019-09-11 11:20:24 +0300 |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-09-11 01:20:24 -0700 |
commit | 7264e92b718d307cc499b2f10eab7644b00f0499 (patch) | |
tree | 7c1d18de546bd8373eeb899b8cf3824874a30dfc /Lib/test/test_asyncio/test_locks.py | |
parent | efd5741ae953e50a6654e04cf731da86a1307296 (diff) | |
download | cpython-7264e92b718d307cc499b2f10eab7644b00f0499.tar.gz cpython-7264e92b718d307cc499b2f10eab7644b00f0499.zip |
bpo-36373: Fix deprecation warnings (GH-15889)
https://bugs.python.org/issue36373
Diffstat (limited to 'Lib/test/test_asyncio/test_locks.py')
-rw-r--r-- | Lib/test/test_asyncio/test_locks.py | 7 |
1 files changed, 3 insertions, 4 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): |