Skip to content

Commit

Permalink
gh-92886: make test_coroutines pass with -O (assertions off) (GH-98060)
Browse files Browse the repository at this point in the history
Automerge-Triggered-By: GH:iritkatriel
(cherry picked from commit 45f2147)

Co-authored-by: Irit Katriel <[email protected]>
  • Loading branch information
miss-islington and iritkatriel authored Oct 8, 2022
1 parent 1573211 commit 72a23d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_coroutines.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 72a23d8

Please sign in to comment.