Skip to content

Commit 419cfa6

Browse files
fix comment
1 parent ff3600d commit 419cfa6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_asyncio/test_events.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,8 @@ def run_in_thread():
396396
handle = self.loop.call_soon_threadsafe(callback, 'hello')
397397
self.assertIsInstance(handle, events._ThreadSafeHandle)
398398
callback_started.wait()
399-
# callback started so it should not be cancel it from other thread until it finishes
399+
# callback started so it cannot be cancelled from other thread until
400+
# it finishes
400401
handle.cancel()
401402
self.assertTrue(callback_finished.is_set())
402403
self.loop.call_soon_threadsafe(self.loop.stop)

0 commit comments

Comments
 (0)