summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-10-08 04:24:02 (GMT)
committerGitHub <noreply@github.com>2022-10-08 04:24:02 (GMT)
commit72a23d8f0641fc30b3182000a91a546f8b24ea31 (patch)
treecde6ab286054c49a16c61ab755209d779407a774
parent15732114b8a110668baf982e00ffb26081a8bac9 (diff)
downloadcpython-72a23d8f0641fc30b3182000a91a546f8b24ea31.zip
cpython-72a23d8f0641fc30b3182000a91a546f8b24ea31.tar.gz
cpython-72a23d8f0641fc30b3182000a91a546f8b24ea31.tar.bz2
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>
-rw-r--r--Lib/test/test_coroutines.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_coroutines.py b/Lib/test/test_coroutines.py
index 8fff2d4..a15736e 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())