From febb50c02cfb88c361c69be7b5c93d1a29cc9c0e Mon Sep 17 00:00:00 2001 From: Jack Hindmarch Date: Wed, 25 May 2022 23:18:09 +0100 Subject: [PATCH 1/3] Fixing test in `test_routines.py` so that it works when running with optimizations (`-O`) --- Lib/test/test_coroutines.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_coroutines.py b/Lib/test/test_coroutines.py index dba5ceffaf1c03..4f97f5668da904 100644 --- a/Lib/test/test_coroutines.py +++ b/Lib/test/test_coroutines.py @@ -1279,7 +1279,7 @@ async def __aexit__(self, *exc): async def func(): async with CM(): - assert (1, ) == 1 + self.assertEqual((1, ), 1) with self.assertRaises(AssertionError): run_async(func()) From 130557a86d39958b4634251997db64647f2460db Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Wed, 25 May 2022 22:23:39 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Tests/2022-05-25-22-23-38.gh-issue-92886.axhrWH.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Tests/2022-05-25-22-23-38.gh-issue-92886.axhrWH.rst diff --git a/Misc/NEWS.d/next/Tests/2022-05-25-22-23-38.gh-issue-92886.axhrWH.rst b/Misc/NEWS.d/next/Tests/2022-05-25-22-23-38.gh-issue-92886.axhrWH.rst new file mode 100644 index 00000000000000..3afea0e677c2b7 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2022-05-25-22-23-38.gh-issue-92886.axhrWH.rst @@ -0,0 +1 @@ +Fixed failing test when running with optimizations ``(-O)`` in ``test_routines.py`` by replacing ``assert`` statement with :func:`assertEqual()`. From 5bffd7da9b525931872c6ce22eb635a25b21ce61 Mon Sep 17 00:00:00 2001 From: Jack Hindmarch <1750152+jackh-ncl@users.noreply.github.com> Date: Tue, 18 Oct 2022 16:11:12 +0100 Subject: [PATCH 3/3] Delete 2022-05-25-22-23-38.gh-issue-92886.axhrWH.rst --- .../next/Tests/2022-05-25-22-23-38.gh-issue-92886.axhrWH.rst | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Misc/NEWS.d/next/Tests/2022-05-25-22-23-38.gh-issue-92886.axhrWH.rst diff --git a/Misc/NEWS.d/next/Tests/2022-05-25-22-23-38.gh-issue-92886.axhrWH.rst b/Misc/NEWS.d/next/Tests/2022-05-25-22-23-38.gh-issue-92886.axhrWH.rst deleted file mode 100644 index 3afea0e677c2b7..00000000000000 --- a/Misc/NEWS.d/next/Tests/2022-05-25-22-23-38.gh-issue-92886.axhrWH.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed failing test when running with optimizations ``(-O)`` in ``test_routines.py`` by replacing ``assert`` statement with :func:`assertEqual()`.