From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Fri, 7 Oct 2022 23:12:28 +0000 (+0100) Subject: gh-92886: make test_coroutines pass with -O (assertions off) (GH-98060) X-Git-Tag: v3.12.0a1~164 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=45f21472daad3934baf364c3100063ecc51c6e04;p=thirdparty%2FPython%2Fcpython.git gh-92886: make test_coroutines pass with -O (assertions off) (GH-98060) Automerge-Triggered-By: GH:iritkatriel --- diff --git a/Lib/test/test_coroutines.py b/Lib/test/test_coroutines.py index 9a2279d353ff..f91c9cc47741 100644 --- a/Lib/test/test_coroutines.py +++ b/Lib/test/test_coroutines.py @@ -1287,7 +1287,7 @@ class CoroutineTest(unittest.TestCase): async def func(): async with CM(): - assert (1, ) == 1 + self.assertEqual((1, ), 1) with self.assertRaises(AssertionError): run_async(func())