Fix typos in comments (#123201)

This commit is contained in:
Wulian 2024-08-21 20:49:23 +08:00 committed by GitHub
parent 7b26c4d1e3
commit 94036e43a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 13 additions and 13 deletions

View file

@ -220,7 +220,7 @@ class TimeoutTests(unittest.IsolatedAsyncioTestCase):
# Pretend the loop is busy for a while.
time.sleep(0.1)
await asyncio.sleep(1)
# TimeoutError was cought by (2)
# TimeoutError was caught by (2)
await asyncio.sleep(10) # This sleep should be interrupted by (1)
t1 = loop.time()
self.assertTrue(t0 <= t1 <= t0 + 1)