diff options
author | Xie Yanbo <xieyanbo@gmail.com> | 2024-08-12 04:16:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-12 04:16:41 (GMT) |
commit | 253c6a0b2f88b3327b7113860b99d665346fe43c (patch) | |
tree | b7607792341c71e620151c1c9e4ad8ec6a7dbda5 /Lib/test/test_asyncio/test_locks.py | |
parent | 9375b9ca3a4998678ba74ff5c77ed540a4dcf887 (diff) | |
download | cpython-253c6a0b2f88b3327b7113860b99d665346fe43c.zip cpython-253c6a0b2f88b3327b7113860b99d665346fe43c.tar.gz cpython-253c6a0b2f88b3327b7113860b99d665346fe43c.tar.bz2 |
Fix typos in comments and test code (#122846)
Diffstat (limited to 'Lib/test/test_asyncio/test_locks.py')
-rw-r--r-- | Lib/test/test_asyncio/test_locks.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_asyncio/test_locks.py b/Lib/test/test_asyncio/test_locks.py index 3450971..c3bff76 100644 --- a/Lib/test/test_asyncio/test_locks.py +++ b/Lib/test/test_asyncio/test_locks.py @@ -1194,14 +1194,14 @@ class SemaphoreTests(unittest.IsolatedAsyncioTestCase): self.assertEqual([2, 3], result) async def test_acquire_fifo_order_4(self): - # Test that a successfule `acquire()` will wake up multiple Tasks + # Test that a successful `acquire()` will wake up multiple Tasks # that were waiting in the Semaphore queue due to FIFO rules. sem = asyncio.Semaphore(0) result = [] count = 0 async def c1(result): - # First task immediatlly waits for semaphore. It will be awoken by c2. + # First task immediately waits for semaphore. It will be awoken by c2. self.assertEqual(sem._value, 0) await sem.acquire() # We should have woken up all waiting tasks now. @@ -1475,7 +1475,7 @@ class BarrierTests(unittest.IsolatedAsyncioTestCase): # first time waiting await barrier.wait() - # after wainting once for all tasks + # after waiting once for all tasks if rewait_n > 0: rewait_n -= 1 # wait again only for rewait tasks |