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 ff3600d commit 419cfa6Copy full SHA for 419cfa6
Lib/test/test_asyncio/test_events.py
@@ -396,7 +396,8 @@ def run_in_thread():
396
handle = self.loop.call_soon_threadsafe(callback, 'hello')
397
self.assertIsInstance(handle, events._ThreadSafeHandle)
398
callback_started.wait()
399
- # callback started so it should not be cancel it from other thread until it finishes
+ # callback started so it cannot be cancelled from other thread until
400
+ # it finishes
401
handle.cancel()
402
self.assertTrue(callback_finished.is_set())
403
self.loop.call_soon_threadsafe(self.loop.stop)
0 commit comments