From e0b245be38c77b6e76824136ef7950d922a1a44a Mon Sep 17 00:00:00 2001 From: Cyker Way Date: Thu, 26 May 2022 07:56:44 +0000 Subject: [PATCH 1/2] Fix assert function in asyncio locks test. --- Lib/test/test_asyncio/test_locks.py | 2 +- .../next/Tests/2022-05-26-07-59-05.gh-issue-93247.qOdpor.rst | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Tests/2022-05-26-07-59-05.gh-issue-93247.qOdpor.rst diff --git a/Lib/test/test_asyncio/test_locks.py b/Lib/test/test_asyncio/test_locks.py index ff25d9edef518f..3c94baa56e1649 100644 --- a/Lib/test/test_asyncio/test_locks.py +++ b/Lib/test/test_asyncio/test_locks.py @@ -853,7 +853,7 @@ async def c4(result): 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() diff --git a/Misc/NEWS.d/next/Tests/2022-05-26-07-59-05.gh-issue-93247.qOdpor.rst b/Misc/NEWS.d/next/Tests/2022-05-26-07-59-05.gh-issue-93247.qOdpor.rst new file mode 100644 index 00000000000000..392eb937f3e601 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2022-05-26-07-59-05.gh-issue-93247.qOdpor.rst @@ -0,0 +1 @@ +Fix assert function in asyncio locks test. From 455a1304dd236275ea6ee56b625e8decac8f08f1 Mon Sep 17 00:00:00 2001 From: Cyker Way Date: Sun, 29 May 2022 01:59:26 +0000 Subject: [PATCH 2/2] Delete NEWS. --- .../next/Tests/2022-05-26-07-59-05.gh-issue-93247.qOdpor.rst | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Misc/NEWS.d/next/Tests/2022-05-26-07-59-05.gh-issue-93247.qOdpor.rst diff --git a/Misc/NEWS.d/next/Tests/2022-05-26-07-59-05.gh-issue-93247.qOdpor.rst b/Misc/NEWS.d/next/Tests/2022-05-26-07-59-05.gh-issue-93247.qOdpor.rst deleted file mode 100644 index 392eb937f3e601..00000000000000 --- a/Misc/NEWS.d/next/Tests/2022-05-26-07-59-05.gh-issue-93247.qOdpor.rst +++ /dev/null @@ -1 +0,0 @@ -Fix assert function in asyncio locks test.