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
  • Loading branch information
iritkatriel authored Oct 7, 2022
1 parent 0f498f1 commit 45f2147
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 @@ -1287,7 +1287,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 45f2147

Please sign in to comment.