diff options
| author | Cyker Way <cykerway@gmail.com> | 2022-06-06 01:19:18 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-06 01:19:18 (GMT) |
| commit | 9081bbd036934ab435291db9d32d02fd42282951 (patch) | |
| tree | 0c3a20032b15915c15109911bf0d3497af764c84 /Lib/test/test_asyncio/test_locks.py | |
| parent | 4082c8e298a244edf6771839334372a47ece721d (diff) | |
| download | cpython-9081bbd036934ab435291db9d32d02fd42282951.zip cpython-9081bbd036934ab435291db9d32d02fd42282951.tar.gz cpython-9081bbd036934ab435291db9d32d02fd42282951.tar.bz2 | |
gh-93247: Fix assert function in asyncio locks test (#93248)
Diffstat (limited to 'Lib/test/test_asyncio/test_locks.py')
| -rw-r--r-- | Lib/test/test_asyncio/test_locks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_locks.py b/Lib/test/test_asyncio/test_locks.py index ff25d9e..3c94baa 100644 --- a/Lib/test/test_asyncio/test_locks.py +++ b/Lib/test/test_asyncio/test_locks.py @@ -853,7 +853,7 @@ class SemaphoreTests(unittest.IsolatedAsyncioTestCase): self.assertTrue(t1.result()) race_tasks = [t2, t3, t4] done_tasks = [t for t in race_tasks if t.done() and t.result()] - self.assertTrue(2, len(done_tasks)) + self.assertEqual(2, len(done_tasks)) # cleanup locked semaphore sem.release() |
