mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-92886: make test_coroutines pass with -O (assertions off) (GH-98060)
Automerge-Triggered-By: GH:iritkatriel
(cherry picked from commit 45f21472da)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
This commit is contained in:
parent
2090eeb46d
commit
8d40fbe48b
1 changed files with 1 additions and 1 deletions
|
|
@ -1262,7 +1262,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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue