From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 8 Oct 2022 04:24:02 +0000 (-0700) Subject: gh-92886: make test_coroutines pass with -O (assertions off) (GH-98060) X-Git-Tag: v3.11.1~316 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=72a23d8f0641fc30b3182000a91a546f8b24ea31;p=thirdparty%2FPython%2Fcpython.git gh-92886: make test_coroutines pass with -O (assertions off) (GH-98060) Automerge-Triggered-By: GH:iritkatriel (cherry picked from commit 45f21472daad3934baf364c3100063ecc51c6e04) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> --- diff --git a/Lib/test/test_coroutines.py b/Lib/test/test_coroutines.py index 8fff2d47c10f..a15736e9f945 100644 --- a/Lib/test/test_coroutines.py +++ b/Lib/test/test_coroutines.py @@ -1280,7 +1280,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())