Skip to content

Commit 8d40fbe

Browse files
gh-92886: make test_coroutines pass with -O (assertions off) (GH-98060)
Automerge-Triggered-By: GH:iritkatriel (cherry picked from commit 45f2147) Co-authored-by: Irit Katriel <[email protected]>
1 parent 2090eeb commit 8d40fbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_coroutines.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ async def __aexit__(self, *exc):
12621262

12631263
async def func():
12641264
async with CM():
1265-
assert (1, ) == 1
1265+
self.assertEqual((1, ), 1)
12661266

12671267
with self.assertRaises(AssertionError):
12681268
run_async(func())

0 commit comments

Comments
 (0)