]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-92886: make test_coroutines pass with -O (assertions off) (GH-98060)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 8 Oct 2022 04:07:09 +0000 (21:07 -0700)
committerGitHub <noreply@github.com>
Sat, 8 Oct 2022 04:07:09 +0000 (21:07 -0700)
Automerge-Triggered-By: GH:iritkatriel
(cherry picked from commit 45f21472daad3934baf364c3100063ecc51c6e04)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Lib/test/test_coroutines.py

index a414a6f505c97eb9c7d59cf18a86cbd0cf22659e..acff24537cf8c6c3e9047a1925f51e130f34583b 100644 (file)
@@ -1262,7 +1262,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())