gh-92886: make test_coroutines pass with -O (assertions off) (GH-98060)

Automerge-Triggered-By: GH:iritkatriel
This commit is contained in:
Irit Katriel 2022-10-08 00:12:28 +01:00 committed by GitHub
parent 0f498f1a95
commit 45f21472da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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())