[Python-checkins] gh-92886: make test_coroutines pass with -O (assertions off) (GH-98060)
miss-islington
webhook-mailer at python.org
Sat Oct 8 00:24:07 EDT 2022
https://github.com/python/cpython/commit/72a23d8f0641fc30b3182000a91a546f8b24ea31
commit: 72a23d8f0641fc30b3182000a91a546f8b24ea31
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-10-07T21:24:02-07:00
summary:
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 at users.noreply.github.com>
files:
M Lib/test/test_coroutines.py
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 @@ async def __aexit__(self, *exc):
async def func():
async with CM():
- assert (1, ) == 1
+ self.assertEqual((1, ), 1)
with self.assertRaises(AssertionError):
run_async(func())
More information about the Python-checkins
mailing list