]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-92886: make test_coroutines pass with -O (assertions off) (GH-98060)
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>
Fri, 7 Oct 2022 23:12:28 +0000 (00:12 +0100)
committerGitHub <noreply@github.com>
Fri, 7 Oct 2022 23:12:28 +0000 (16:12 -0700)
Automerge-Triggered-By: GH:iritkatriel
Lib/test/test_coroutines.py

index 9a2279d353ffa41ce207f8dab9297a6a02c0bd6d..f91c9cc47741b52f40cac8a8891b23596ecfe53c 100644 (file)
@@ -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())