Skip to content

Commit

Permalink
pythongh-92886: make test_coroutines pass with -O (assertions off) (p…
Browse files Browse the repository at this point in the history
…ythonGH-98060)

Automerge-Triggered-By: GH:iritkatriel
  • Loading branch information
iritkatriel authored and mpage committed Oct 11, 2022
1 parent c42b931 commit dcbae74
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 dcbae74

Please sign in to comment.