mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-97545: Make Semaphore run faster. (#97549)
This commit is contained in:
parent
d68c37c0d0
commit
68c46ae68b
3 changed files with 19 additions and 23 deletions
|
@ -844,9 +844,8 @@ class SemaphoreTests(unittest.IsolatedAsyncioTestCase):
|
|||
|
||||
sem.release()
|
||||
sem.release()
|
||||
self.assertEqual(2, sem._value)
|
||||
self.assertEqual(0, sem._value)
|
||||
|
||||
await asyncio.sleep(0)
|
||||
await asyncio.sleep(0)
|
||||
self.assertEqual(0, sem._value)
|
||||
self.assertEqual(3, len(result))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue