summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_locks.py
diff options
context:
space:
mode:
authorCyker Way <cykerway@gmail.com>2022-09-26 23:38:00 (GMT)
committerGitHub <noreply@github.com>2022-09-26 23:38:00 (GMT)
commit68c46ae68b6e0c36a12e37285fff9ce0782ed01e (patch)
tree03c00022c481f521a503570ad988eb11e74ead7a /Lib/test/test_asyncio/test_locks.py
parentd68c37c0d08542a346a13b150a204208bb0408f5 (diff)
downloadcpython-68c46ae68b6e0c36a12e37285fff9ce0782ed01e.zip
cpython-68c46ae68b6e0c36a12e37285fff9ce0782ed01e.tar.gz
cpython-68c46ae68b6e0c36a12e37285fff9ce0782ed01e.tar.bz2
gh-97545: Make Semaphore run faster. (#97549)
Diffstat (limited to 'Lib/test/test_asyncio/test_locks.py')
-rw-r--r--Lib/test/test_asyncio/test_locks.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_locks.py b/Lib/test/test_asyncio/test_locks.py
index 1eb25e7..f6c6a28 100644
--- a/Lib/test/test_asyncio/test_locks.py
+++ b/Lib/test/test_asyncio/test_locks.py
@@ -844,10 +844,9 @@ 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))
self.assertTrue(sem.locked())