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
(cherry picked from commit 45f2147)

Co-authored-by: Irit Katriel <[email protected]>
  • Loading branch information
iritkatriel authored and miss-islington committed Oct 7, 2022
1 parent 17c9ce1 commit 947ea7f
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 947ea7f

Please sign in to comment.