Skip to content

Commit

Permalink
Fix test error about deprecation warning (python#30205)
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Dec 19, 2021
1 parent f8fce5e commit 2352644
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/test_asyncio/test_locks.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,8 @@ async def wrong_loop_in_cond():
ValueError,
"loop argument must agree with lock"
):
asyncio.Condition(lock, loop=loop)
with self.assertWarns(DeprecationWarning):
asyncio.Condition(lock, loop=loop)

await wrong_loop_in_lock()
await wrong_loop_in_cond()
Expand Down

0 comments on commit 2352644

Please sign in to comment.