We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e9394b commit 2aa02e0Copy full SHA for 2aa02e0
test/asynchronous/test_locks.py
@@ -320,7 +320,7 @@ async def func():
320
task = asyncio.create_task(func())
321
await asyncio.sleep(0)
322
# Task is waiting on the condition, cancel it there.
323
- task.cancel(msg="foo")
+ task.cancel(msg="foo") # type: ignore[call-arg]
324
with self.assertRaises(asyncio.CancelledError) as err:
325
await task
326
self.assertEqual(err.exception.args, ("foo",))
@@ -354,7 +354,7 @@ async def func():
354
cond.notify()
355
356
# Task is now trying to re-acquire the lock, cancel it there.
357
358
cond.release()
359
360
0 commit comments